Method: ComfyPress::ActsAsTree::InstanceMethods#siblings
- Defined in:
- lib/comfypress/extensions/acts_as_tree.rb
#siblings ⇒ Object
Returns all siblings of the current node.
subchild1.siblings # => [subchild2]
89 90 91 |
# File 'lib/comfypress/extensions/acts_as_tree.rb', line 89 def siblings self_and_siblings - [self] end |