Object
# File lib/plugins/hatena_keyword_haiku.rb, line 6 def initialize(word, yomi) raise 'word is nil' unless word and not word.empty? @word = word @yomi = yomi end
# File lib/plugins/hatena_keyword_haiku.rb, line 20 def length @length ||= self.yomi.gsub(/\n|ぁ|ぃ|ぅ|ぇ|ぉ|ァ|ィ|ゥ|ェ|ォ|ゃ|ゅ|ょ|ャ|ュ|ョ/, '').split(//).length end
# File lib/plugins/hatena_keyword_haiku.rb, line 12 def word @word end
# File lib/plugins/hatena_keyword_haiku.rb, line 16 def yomi @yomi end
[Validate]
Generated with the Darkfish Rdoc Generator 2.