class Coltrane::Commands::GetRepresentationChords
Public Instance Methods
run(representation, chords)
click to toggle source
# File lib/coltrane/commands/get_representation_chords.rb, line 4 def run(representation, chords) chords.map do |chord| if representation == 'GuitarChordChart' { chord.name => Representation::Guitar.find_chords(chord).first(4), options: { layout: :horizontal, per_row: 4 } } else { chord.name => GetRepresentationNotes.run(representation, chord.notes) } end end end