Sha256: 37e39029d6f31f8b99d6b206d18622b8082047d4d8bf279ba2e34ad556ae7e50

Contents?: true

Size: 396 Bytes

Versions: 7

Compression:

Stored size: 396 Bytes

Contents

# encoding: utf-8

module Mixture
  module Types
    # A hash.  This is also accessable, and expects two member types;
    # one for the keys, and one for the values.
    class Hash < Object
      options[:primitive] = ::Hash
      options[:members]   = [Object, Object]
      options[:method]    = :to_hash
      options[:types]     = ThreadSafe::Cache.new
      extend Access
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mixture-0.4.0 lib/mixture/types/hash.rb
mixture-0.3.6 lib/mixture/types/hash.rb
mixture-0.3.5 lib/mixture/types/hash.rb
mixture-0.3.4 lib/mixture/types/hash.rb
mixture-0.3.2 lib/mixture/types/hash.rb
mixture-0.3.1 lib/mixture/types/hash.rb
mixture-0.3.0 lib/mixture/types/hash.rb