class AnyHash::JSON

Overview

Wrapper for Hash(K, V) with Symbol | String keys and recursive (((((Nil | Number::Primitive) | Bool) | Symbol) | String) | Time) | ::JSON::Any) values.

NOTE Class auto-generated by AnyHash.define_new.

See AnyHash.

Included Modules

Defined in:

any_hash/json.cr

Constructors

Instance methods inherited from class AnyHash(String | Symbol, AnyHash::JSONTypes::Value)

==(other : self)
==(other : NamedTuple)
==(arg)
==
, ===(arg) ===, [](*keys) [], []=(key, value)
[]=(*args)
[]=
, []?(*keys) []?, clone clone, dig(keys : Enumerable)
dig(*keys)
dig
, dig?(keys : Enumerable)
dig?(*keys)
dig?
, dup dup, each(*args, **options)
each(*args, **options, &)
each
, merge(*values, **options)
merge(*values, **options, &)
merge
, merge!(*values, **options)
merge!(*values, **options, &)
merge!
, replace(other) replace, reverse_merge(other = nil, *values, **options)
reverse_merge(other = nil, *values, **options, &)
reverse_merge
, reverse_merge!(other = nil, *values, **options)
reverse_merge!(other = nil, *values, **options, &)
reverse_merge!
, to_h(*args, **options)
to_h(*args, **options, &)
to_h

Constructor methods inherited from class AnyHash(String | Symbol, AnyHash::JSONTypes::Value)

new(hash = nil) new

Class methods inherited from class AnyHash(String | Symbol, AnyHash::JSONTypes::Value)

deep_cast_value(value) deep_cast_value

Constructor Detail

def self.new(hash = nil) #

Initializes AnyHash with the given hash object.

NOTE AnyHash | Hash objects are passed by reference.


[View source]