Method: PM::DSL#song
- Defined in:
- lib/patchmaster/dsl.rb
#song(name) {|@song| ... } ⇒ Object
96 97 98 99 100 |
# File 'lib/patchmaster/dsl.rb', line 96 def song(name) @song = Song.new(name) # ctor saves into @pm.all_songs @songs[name] = @song yield @song if block_given? end |