Module ActiveRecord::Acts::NestedSet::InstanceMethods
In: lib/active_record/acts/nested_set.rb

Methods

Public Instance methods

Adds a child to this object in the tree. If this object hasn‘t been initialized, it gets set up as a root node. Otherwise, this method will update all of the other elements in the tree and shift them to the right, keeping everything balanced.

Returns a set of all of its children and nested children

Prunes a branch off of the tree, shifting all of the elements on the right back to the left so the counts still work.

Returns true is this is a child node

Returns the number of nested children of this object.

Returns a set of only this entry‘s immediate children

Returns a set of itself and all of its nested children

Returns true is this is a root node.

Returns true if we have no idea what this is

[Validate]