Sha256: 07742dc03ec56aaa705da79d87c48102842ffc4056c8d50be2c8793ce7739da8

Contents?: true

Size: 144 Bytes

Versions: 14

Compression:

Stored size: 144 Bytes

Contents

class Hash
	if !{}.respond_to?("default_proc=")
		def default_proc=(blk)
            self.replace(Hash.new(&blk).merge(self))
  		end
	end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
json-schema-2.4.0 lib/json-schema/util/hash.rb
json-schema-2.3.0 lib/json-schema/util/hash.rb
json-schema-2.2.5 lib/json-schema/util/hash.rb
json-schema-pvdgm-2.3.1 lib/json-schema/util/hash.rb
json-schema-2.2.4 lib/json-schema/util/hash.rb
json-schema-2.2.3 lib/json-schema/util/hash.rb
json-schema-2.2.2 lib/json-schema/util/hash.rb
json-schema-2.2.1 lib/json-schema/util/hash.rb
json-schema-2.2.0 lib/json-schema/util/hash.rb
json-schema-2.1.9 lib/json-schema/util/hash.rb
json-schema-2.1.8 lib/json-schema/util/hash.rb
json-schema-2.1.7 lib/json-schema/util/hash.rb
json-schema-2.1.6 lib/json-schema/util/hash.rb
json-schema-2.1.5 lib/json-schema/util/hash.rb