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-1.8.5 lib/spyke/collection.rb
spyke-1.8.4 lib/spyke/collection.rb
spyke-1.8.3 lib/spyke/collection.rb
spyke-1.8.2 lib/spyke/collection.rb
spyke-1.8.1 lib/spyke/collection.rb
spyke-1.8.0 lib/spyke/collection.rb
spyke-1.7.2 lib/spyke/collection.rb
spyke-1.7.1 lib/spyke/collection.rb
spyke-1.7.0 lib/spyke/collection.rb
spyke-1.6.0 lib/spyke/collection.rb
spyke-1.5.0 lib/spyke/collection.rb
spyke-1.4.1 lib/spyke/collection.rb
spyke-1.4.0 lib/spyke/collection.rb
spyke-1.3.0 lib/spyke/collection.rb
spyke-1.2.1 lib/spyke/collection.rb
spyke-1.2.0 lib/spyke/collection.rb
spyke-1.1.2 lib/spyke/collection.rb
spyke-1.1.1 lib/spyke/collection.rb
spyke-1.1.0 lib/spyke/collection.rb
spyke-1.0.2 lib/spyke/collection.rb