Class: Coltrane::Commands::GetChordsFromScale

Inherits:
Command
  • Object
show all
Defined in:
lib/coltrane/commands/get_chords_from_scale.rb

Instance Attribute Summary

Attributes inherited from Command

#error

Instance Method Summary collapse

Methods inherited from Command

run

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