Class: MusicSetTheory::ScaleChordCell
- Inherits:
-
Object
- Object
- MusicSetTheory::ScaleChordCell
- Defined in:
- lib/music_set_theory/chord_generator.rb,
lib/music_set_theory/chord_generator.rb
Overview
Represents different cells in the table of chords.
Instance Attribute Summary collapse
-
#chordname_1 ⇒ Object
Returns the value of attribute chordname_1.
-
#chordname_2 ⇒ Object
Returns the value of attribute chordname_2.
-
#notes ⇒ Object
Returns the value of attribute notes.
Instance Method Summary collapse
-
#initialize(chordname_1, chordname_2, notes) ⇒ ScaleChordCell
constructor
A new instance of ScaleChordCell.
- #to_a ⇒ Object
Constructor Details
#initialize(chordname_1, chordname_2, notes) ⇒ ScaleChordCell
Returns a new instance of ScaleChordCell.
222 223 224 225 226 |
# File 'lib/music_set_theory/chord_generator.rb', line 222 def initialize( chordname_1, chordname_2, notes ) self.chordname_1 = chordname_1 self.chordname_2 = chordname_2 self.notes = notes end |
Instance Attribute Details
#chordname_1 ⇒ Object
Returns the value of attribute chordname_1.
221 222 223 |
# File 'lib/music_set_theory/chord_generator.rb', line 221 def chordname_1 @chordname_1 end |
#chordname_2 ⇒ Object
Returns the value of attribute chordname_2.
221 222 223 |
# File 'lib/music_set_theory/chord_generator.rb', line 221 def chordname_2 @chordname_2 end |
#notes ⇒ Object
Returns the value of attribute notes.
221 222 223 |
# File 'lib/music_set_theory/chord_generator.rb', line 221 def notes @notes end |
Instance Method Details
#to_a ⇒ Object
228 229 230 |
# File 'lib/music_set_theory/chord_generator.rb', line 228 def to_a [self.chordname_1, self.chordname_2, self.notes] end |