Class: Coltrane::UI::Views::FindProgressionsFromChords

Inherits:
View
  • Object
show all
Defined in:
lib/coltrane/ui/views/find_progressions_from_chords.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



7
8
9
10
# File 'lib/coltrane/ui/views/find_progressions_from_chords.rb', line 7

def render
  chords = Commands::GetChordsFromString.run(params[:chords])
  Commands::FindProgressionsFromChords.run(*chords)
end