class Depth::ComplexHash
Constants
- DEFAULT_CREATION_PROC
- DEFAULT_KEY_TRANSFORMER
- DEFAULT_NEXT_PROC
Attributes
base[R]
creation_proc[R]
key_transformer[R]
next_proc[R]
to_h[R]
Public Class Methods
new(base = {}, key_transformer: DEFAULT_KEY_TRANSFORMER, next_proc: DEFAULT_NEXT_PROC, creation_proc: DEFAULT_CREATION_PROC)
click to toggle source
# File lib/depth/complex_hash.rb, line 10 def initialize(base = {}, key_transformer: DEFAULT_KEY_TRANSFORMER, next_proc: DEFAULT_NEXT_PROC, creation_proc: DEFAULT_CREATION_PROC) @base = base @next_proc = next_proc @creation_proc = creation_proc @key_transformer = key_transformer end