Class: Coltrane::Commands::GetChordsFromScale
- Defined in:
- lib/coltrane/commands/get_chords_from_scale.rb
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
Instance Method Details
#run(scale, type, size) ⇒ Object
4 5 6 |
# File 'lib/coltrane/commands/get_chords_from_scale.rb', line 4 def run(scale, type, size) scale.send(type == 'tertians' ? :tertians : :chords) end |