Sha256: 6f5a50b8b75def44b460da1c75c90ba8506eee62363fed0c3ab19ce181b787b9
Contents?: true
Size: 670 Bytes
Versions: 3
Compression:
Stored size: 670 Bytes
Contents
module Coltrane module UI module Views class ShowScale < View questions({ scale: { statement: 'Which Scale?', options: Commands::AvailableClassicScales.run }, tone: { statement: 'What is the root of the scale?' }, representation: { statement: 'How to display?', options: Commands::AvailableRepresentations.run } }) def render scale = Commands::GetClassicScale.run(*params.values_at(:scale, :tone)) Commands::GetRepresentationNotes.run(params[:representation], scale.notes) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
coltrane-4.0.5 | lib/coltrane/ui/views/show_scale.rb |
coltrane-4.0.4 | lib/coltrane/ui/views/show_scale.rb |
coltrane-4.0.3 | lib/coltrane/ui/views/show_scale.rb |