Module: Tree::ChildrenProperty

Included in:
ChildrenImplementation, InternalParentChildImplementation
Defined in:
lib/modular_tree/properties.rb

Instance Method Summary collapse

Instance Method Details

#attach(child) ⇒ Object



37
# File 'lib/modular_tree/properties.rb', line 37

def attach(child) = abstract_method

#childrenObject



35
# File 'lib/modular_tree/properties.rb', line 35

def children = abstract_method

#detach(arg) ⇒ Object

:call-seq:

detach(key)
detach(child)


43
# File 'lib/modular_tree/properties.rb', line 43

def detach(arg) = abstract_method

#each_child(&block) ⇒ Object



36
# File 'lib/modular_tree/properties.rb', line 36

def each_child(&block) = children.each(&block)