Class: Coltrane::Commands::FindCommonChords

Inherits:
Command
  • Object
show all
Defined in:
lib/coltrane/commands/find_common_chords.rb

Instance Attribute Summary

Attributes inherited from Command

#error

Instance Method Summary collapse

Methods inherited from Command

run

Instance Method Details

#run(*scales) ⇒ Object



4
5
6
# File 'lib/coltrane/commands/find_common_chords.rb', line 4

def run(*scales)
  scales.map(&:chords).reduce(&:&)
end