Method: Chords::Chord#initialize
- Defined in:
- lib/chords/chord.rb
#initialize(title_parts, *notes) ⇒ Chord
Returns a new instance of Chord.
9 10 11 12 13 |
# File 'lib/chords/chord.rb', line 9 def initialize(title_parts, *notes) @title_parts = title_parts @notes = notes.flatten @root = @notes.first end |