Module: HyakuninIssyu
- Defined in:
- lib/hyakunin-issyu.rb,
lib/hyakunin-issyu/version.rb
Constant Summary collapse
- VERSION =
"0.1.4"
Instance Method Summary collapse
Instance Method Details
#initialize ⇒ Object
9 10 11 |
# File 'lib/hyakunin-issyu.rb', line 9 def initialize HyakuninIssyu.const_set("SONGS", @data_set) end |
#songs(id_from, id_to) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/hyakunin-issyu.rb', line 13 def songs(id_from, id_to) @songs = Array.new for i in id_from..id_to song = HyakuninIssyu.const_get("SONGS") @songs[i] = song[i] end return @songs end |