Class: Coltrane::UI::Views::ShowProgression

Inherits:
View
  • Object
show all
Defined in:
lib/coltrane/ui/views/show_progression.rb

Instance Attribute Summary

Attributes inherited from View

#params, #path

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

#renderObject



19
20
21
22
# File 'lib/coltrane/ui/views/show_progression.rb', line 19

def render
  chords = Commands::GetChordsFromNotableProgression.run(*params.values_at(:progression, :root))
  Commands::GetRepresentationChords.run(params[:representation], chords)
end