Class: Depth::ComplexHash
- Inherits:
-
Object
- Object
- Depth::ComplexHash
- Includes:
- Actions, Enumeration::Enumerable
- Defined in:
- lib/depth/complex_hash.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
(also: #to_h)
readonly
Returns the value of attribute base.
Instance Method Summary collapse
-
#initialize(base = {}) ⇒ ComplexHash
constructor
A new instance of ComplexHash.
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
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
#base ⇒ Object (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 |