class HyakuninIssyu::Poem
Public Class Methods
new(id)
click to toggle source
# File lib/HyakuninIssyu.rb, line 41 def initialize(id) @poem = @@poems[id-1] end
Public Instance Methods
comment()
click to toggle source
# File lib/HyakuninIssyu.rb, line 69 def comment @poem['comment'] end
en()
click to toggle source
# File lib/HyakuninIssyu.rb, line 57 def en @poem["poem"]["en"] end
first()
click to toggle source
# File lib/HyakuninIssyu.rb, line 61 def first First.new(@poem) end
id()
click to toggle source
# File lib/HyakuninIssyu.rb, line 45 def id @poem['id'] end
kana()
click to toggle source
# File lib/HyakuninIssyu.rb, line 49 def kana @poem["poem"]["kana"] end
kanji()
click to toggle source
# File lib/HyakuninIssyu.rb, line 53 def kanji @poem["poem"]["kanji"] end
last()
click to toggle source
# File lib/HyakuninIssyu.rb, line 65 def last Last.new(@poem) end