Module: ComponentDescriptors::HashExtensions

Included in:
DescriptorHash
Defined in:
lib/component_descriptors.rb

Overview

Extensions to Hash used by node descriptors to keep track of parents.

Instance Method Summary collapse

Instance Method Details

#store(key, value) ⇒ Object

Ensure that we keep a reference to the parent hash when new elements are stored.



438
439
440
441
# File 'lib/component_descriptors.rb', line 438

def store(key, value)
  value.parent = self
  super
end