Class: Coltrane::Representation::Piano::NoteSet
- Inherits:
-
Object
- Object
- Coltrane::Representation::Piano::NoteSet
- Extended by:
- Forwardable
- Includes:
- Enumerable
- Defined in:
- lib/coltrane/representation/piano/note_set.rb
Instance Attribute Summary collapse
-
#notes ⇒ Object
readonly
Returns the value of attribute notes.
-
#piano ⇒ Object
readonly
Returns the value of attribute piano.
Instance Method Summary collapse
-
#initialize(note_set, piano:) ⇒ NoteSet
constructor
A new instance of NoteSet.
Constructor Details
#initialize(note_set, piano:) ⇒ NoteSet
Returns a new instance of NoteSet.
13 14 15 16 |
# File 'lib/coltrane/representation/piano/note_set.rb', line 13 def initialize(note_set, piano:) @notes = note_set @piano = piano end |
Instance Attribute Details
#notes ⇒ Object (readonly)
Returns the value of attribute notes.
10 11 12 |
# File 'lib/coltrane/representation/piano/note_set.rb', line 10 def notes @notes end |
#piano ⇒ Object (readonly)
Returns the value of attribute piano.
10 11 12 |
# File 'lib/coltrane/representation/piano/note_set.rb', line 10 def piano @piano end |