pedrozath/coltrane

View on GitHub
lib/coltrane/commands/find_common_chords.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
80%
module Coltrane
  module Commands
    class FindCommonChords < Command
      def run(*scales)
        scales.map(&:chords).reduce(&:&)
      end
    end
  end
end