Sha256: 5fbb6c6cb3ed5c967bd30ac826d41069afd0ac4479db3db9ed1b463dbf67dfb4

Contents?: true

Size: 416 Bytes

Versions: 22

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true

module Coltrane
  module Representation
    class Piano
      class NoteSet
        extend Forwardable
        include Enumerable

        attr_reader :notes, :piano
        def_delegators :notes, :each, :root

        def initialize(note_set, piano:)
          @notes = note_set
          @piano = piano
        end

        instance_eval { alias [] new }
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
coltrane-4.1.2 lib/coltrane/representation/piano/note_set.rb
coltrane-4.1.1 lib/coltrane/representation/piano/note_set.rb
coltrane-4.1.0 lib/coltrane/representation/piano/note_set.rb
coltrane-4.0.6 lib/coltrane/representation/piano/note_set.rb
coltrane-4.0.5 lib/coltrane/representation/piano/note_set.rb
coltrane-4.0.4 lib/coltrane/representation/piano/note_set.rb
coltrane-4.0.3 lib/coltrane/representation/piano/note_set.rb
coltrane-3.4.2 lib/coltrane/representation/piano/note_set.rb
coltrane-3.4.1 lib/coltrane/representation/piano/note_set.rb
coltrane-3.4.0 lib/coltrane/representation/piano/note_set.rb
coltrane-3.3.3 lib/coltrane/representation/piano/note_set.rb
coltrane-3.3.2 lib/coltrane/representation/piano/note_set.rb
coltrane-3.3.1 lib/coltrane/representation/piano/note_set.rb
coltrane-3.3.0 lib/coltrane/representation/piano/note_set.rb
coltrane-3.2.0 lib/coltrane/representation/piano/note_set.rb
coltrane-3.1.3 lib/coltrane/representation/piano/note_set.rb
coltrane-3.1.2 lib/coltrane/representation/piano/note_set.rb
coltrane-3.1.1 lib/coltrane/representation/piano/note_set.rb
coltrane-3.1.0 lib/coltrane/representation/piano/note_set.rb
coltrane-3.0.0 lib/coltrane/representation/piano/note_set.rb