Class: Coltrane::UI::Views::ShowChord

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



13
14
15
16
# File 'lib/coltrane/ui/views/show_chord.rb', line 13

def render
  chord = Commands::GetChordsFromString.run(params[:chord]).first
  Commands::GetRepresentationChords.run(params[:chord_representation], [chord])
end