lib/patchmaster/dsl.rb in patchmaster-1.0.0 vs lib/patchmaster/dsl.rb in patchmaster-1.1.2

- old
+ new

@@ -73,10 +73,14 @@ @song = Song.new(name) # ctor saves into @pm.all_songs @songs[name] = @song yield @song if block_given? end + def notes(txt) + @song.notes = txt + end + def patch(name) @patch = Patch.new(name) @song << @patch yield @patch if block_given? end @@ -152,9 +156,17 @@ song_names.each do |sn| song = @songs[sn] raise "song \"#{sn}\" not found (song list \"#{name}\")" unless song sl << song end + end + + def alias_input(new_sym, old_sym) + @inputs[new_sym] = @inputs[old_sym] + end + + def alias_output(new_sym, old_sym) + @outputs[new_sym] = @outputs[old_sym] end # **************************************************************** def save(file)