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.0.1 lib/spyke/collection.rb
spyke-1.0.0 lib/spyke/collection.rb