Method: PM::DSL#song_list
- Defined in:
- lib/patchmaster/dsl.rb
#song_list(name, song_names) ⇒ Object
177 178 179 180 181 182 183 184 185 |
# File 'lib/patchmaster/dsl.rb', line 177 def song_list(name, song_names) sl = SongList.new(name) @pm.song_lists << sl song_names.each do |sn| song = @songs[sn] raise "song \"#{sn}\" not found (song list \"#{name}\")" unless song sl << song end end |