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

Methods

Public Instance methods

Added 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 balanaced.

Returns a set of all of it’s 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 entries immediate children

Returns a set of itself and all of it’s nested children

Returns true is this is a root node.

Returns true if we have no idea what this is

[Validate]