Class: Depth::ComplexHash

Inherits:
Object
  • Object
show all
Includes:
Actions, Enumeration::Enumerable
Defined in:
lib/depth/complex_hash.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Enumeration::Enumerable

#each, #each_with_object, #map, #map!, #map_keys, #map_keys!, #map_values, #map_values!, #reduce, #reject, #select

Methods included from Actions

#alter, #delete, #find, #set

Constructor Details

#initialize(base = {}) ⇒ ComplexHash

Returns a new instance of ComplexHash.



7
8
9
# File 'lib/depth/complex_hash.rb', line 7

def initialize(base = {})
  @base = base
end

Instance Attribute Details

#baseObject (readonly) Also known as: to_h

Returns the value of attribute base.



5
6
7
# File 'lib/depth/complex_hash.rb', line 5

def base
  @base
end