Class: Coltrane::UI::Views::ShowScale

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

Direct Known Subclasses

FindChordsInScale

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_scale.rb', line 19

def render
  scale = Commands::GetClassicScale.run(*params.values_at(:scale, :tone))
  Commands::GetRepresentationNotes.run(params[:representation], scale.notes)
end