Method: Apotomo::TreeNode#children
- Defined in:
- lib/apotomo/widget/tree_node.rb
#children ⇒ Object
Returns an array of all the immediate children. If a block is given, yields each child node to the block.
62 63 64 65 66 67 68 |
# File 'lib/apotomo/widget/tree_node.rb', line 62 def children if block_given? @children.each { |child| yield child } else @children end end |