Sha256: 0d15ea160cd55a7a4a6cbf9923cd162c1ed5ad17135f282276df866f19ca1f31

Contents?: true

Size: 180 Bytes

Versions: 62

Compression:

Stored size: 180 Bytes

Contents

module Spyke
  class Collection < ::Array
    attr_reader :metadata

    def initialize(elements, metadata = {})
      super(elements)
      @metadata = metadata
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
spyke-7.2.2 lib/spyke/collection.rb
spyke-7.1.1 lib/spyke/collection.rb
spyke-7.1.0 lib/spyke/collection.rb
spyke-7.0.0 lib/spyke/collection.rb
spyke-6.1.3 lib/spyke/collection.rb
spyke-6.1.2 lib/spyke/collection.rb
spyke-6.1.1 lib/spyke/collection.rb
spyke-6.1.0 lib/spyke/collection.rb
spyke-6.0.0 lib/spyke/collection.rb
spyke-5.4.3 lib/spyke/collection.rb
spyke-5.4.2 lib/spyke/collection.rb
spyke-5.4.1 lib/spyke/collection.rb
spyke-5.4.0 lib/spyke/collection.rb
spyke-5.3.4 lib/spyke/collection.rb
spyke-5.3.3 lib/spyke/collection.rb
spyke-5.3.2 lib/spyke/collection.rb
spyke-5.3.1 lib/spyke/collection.rb
spyke-5.3.0 lib/spyke/collection.rb
spyke-5.2.0 lib/spyke/collection.rb
spyke-5.1.0 lib/spyke/collection.rb