Sha256: 60fa067f8642cc26b5f22e6445399bed9e2df49b4ec2e92465bca5ab599bdf0c

Contents?: true

Size: 162 Bytes

Versions: 7

Compression:

Stored size: 162 Bytes

Contents

module Coltrane
  module Commands
    class FindCommonChords < Command
      def run(*scales)
        scales.map(&:chords).reduce(&:&)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
coltrane-4.1.2 lib/coltrane/commands/find_common_chords.rb
coltrane-4.1.1 lib/coltrane/commands/find_common_chords.rb
coltrane-4.1.0 lib/coltrane/commands/find_common_chords.rb
coltrane-4.0.6 lib/coltrane/commands/find_common_chords.rb
coltrane-4.0.5 lib/coltrane/commands/find_common_chords.rb
coltrane-4.0.4 lib/coltrane/commands/find_common_chords.rb
coltrane-4.0.3 lib/coltrane/commands/find_common_chords.rb