Method: NicInfo::DataTree#add_children_as_root
- Defined in:
- lib/nicinfo/data_tree.rb
#add_children_as_root(node) ⇒ Object
73 74 75 76 77 |
# File 'lib/nicinfo/data_tree.rb', line 73 def add_children_as_root node node.children.each do |child| add_root( child ) end if node end |