class PM::Song
A Song
is a named list of Patches.
Attributes
name[RW]
notes[RW]
patches[RW]
Public Class Methods
new(name)
click to toggle source
# File lib/patchmaster/song.rb, line 8 def initialize(name) @name = name @patches = [] PatchMaster.instance.all_songs << self end
Public Instance Methods
<<(patch)
click to toggle source
# File lib/patchmaster/song.rb, line 14 def <<(patch) @patches << patch end