Sha256: 2d669da39f515e7fc12cf7ccdb5d53617fc953b1382e2545d4957cf0c4622117

Contents?: true

Size: 411 Bytes

Versions: 5

Compression:

Stored size: 411 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
      register
      options[:primitive] = ::Hash
      options[:members]   = [Object, Object]
      options[:method]    = :to_hash
      options[:types]     = ThreadSafe::Cache.new
      extend Access
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mixture-0.6.2 lib/mixture/types/hash.rb
mixture-0.6.1 lib/mixture/types/hash.rb
mixture-0.6.0 lib/mixture/types/hash.rb
mixture-0.5.1 lib/mixture/types/hash.rb
mixture-0.5.0 lib/mixture/types/hash.rb