Module | DataMapper::Is::Tree::InstanceMethods |
In: |
lib/data_mapper/is/tree.rb
lib/data_mapper/is/tree.rb |
Returns all children of the current node’s parent.
grandchild1.generation # => [grandchild1, grandchild2]
# File lib/data_mapper/is/tree.rb, line 114 114: def generation 115: parent ? parent.children : self.class.roots 116: end
Returns all children of the current node’s parent.
grandchild1.generation # => [grandchild1, grandchild2]
# File lib/data_mapper/is/tree.rb, line 114 114: def generation 115: parent ? parent.children : self.class.roots 116: end