class Coltrane::Commands::GetChordsFromString
Public Instance Methods
run(string)
click to toggle source
# File lib/coltrane/commands/get_chords_from_string.rb, line 4 def run(string) string.split(' ').map do |chord| Theory::Chord.new(name: chord) end end