Returns a new instance of TreeHash.
4 5 6 7 8 9
# File 'lib/bblib/core/classes/tree_hash.rb', line 4 def initialize(object = {}, parent = nil) @children = {} @parent = parent object = object.value if object.is_a?(TreeHash) replace_with(object) end