Method: Coltrane::Representation::Guitar.find_chords

Defined in:
lib/coltrane/representation/guitar.rb

.find_chords(target_chord) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/coltrane/representation/guitar.rb', line 13

def self.find_chords(target_chord)
  unless target_chord.is_a?(Theory::Chord)
    target_chord = Theory::Chord.new(name: target_chord)
  end

  Guitar::Chord.find(target_chord, guitar: new)
end