Class: Coltrane::UI::Views::FindChordsInScale
- Defined in:
- lib/coltrane/ui/views/find_chords_in_scale.rb
Instance Attribute Summary
Attributes inherited from View
Instance Method Summary collapse
Methods inherited from View
#ensure_param, #go_to, inherited, #initialize, #output, questions, render, set_path
Constructor Details
This class inherits a constructor from Coltrane::UI::Views::View
Instance Method Details
#render ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'lib/coltrane/ui/views/find_chords_in_scale.rb', line 25 def render scale = Commands::GetClassicScale.run(*params.values_at(:scale, :tone)) chords = Commands::GetChordsFromScale.run( scale, *params.values_at(:chord_type, :chord_size) ) Commands::GetRepresentationChords.run(params[:chord_representation], chords) end |