Class: PM::Song
- Inherits:
-
Object
- Object
- PM::Song
- Defined in:
- lib/patchmaster/song.rb
Overview
A Song is a named list of Patches.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#patches ⇒ Object
Returns the value of attribute patches.
Instance Method Summary collapse
- #<<(patch) ⇒ Object
-
#initialize(name) ⇒ Song
constructor
A new instance of Song.
Constructor Details
#initialize(name) ⇒ Song
Returns a new instance of Song.
8 9 10 11 12 |
# File 'lib/patchmaster/song.rb', line 8 def initialize(name) @name = name @patches = [] PatchMaster.instance.all_songs << self end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/patchmaster/song.rb', line 6 def name @name end |
#notes ⇒ Object
Returns the value of attribute notes.
6 7 8 |
# File 'lib/patchmaster/song.rb', line 6 def notes @notes end |
#patches ⇒ Object
Returns the value of attribute patches.
6 7 8 |
# File 'lib/patchmaster/song.rb', line 6 def patches @patches end |