Sha256: a5fcba54b05d41c2e255ed0403e93c8a8c7b6e81908fd5e720e14b17646874ed

Contents?: true

Size: 389 Bytes

Versions: 2

Compression:

Stored size: 389 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

module Mixture
  module Types
    # A collection.  This is recognized as an actual set of values,
    # rather than just being enumerable.  The set of values have a
    # defined type.
    class Collection < Enumerable
      options[:members] = [Object]
      options[:types]   = ThreadSafe::Cache.new
      extend Access
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mixture-0.7.1 lib/mixture/types/collection.rb
mixture-0.7.0 lib/mixture/types/collection.rb