Class: Coltrane::UI::Views::FindScaleByNotes

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



9
10
11
12
# File 'lib/coltrane/ui/views/find_scale_by_notes.rb', line 9

def render
  notes = Commands::GetNotesFromString.run(params[:notes])
  Commands::FindScaleByNotes.run(*notes)
end