Module

Node

Represents a node in the tree. Nodes are never encountered except as superclasses of other objects. Nodes have siblings.

Public Methods
each_recursive Visit all subnodes of self recursively
find_first_recursive Find (and return) first subnode (recursively) for which the block evaluates to true. Returns nil if none was found.
indent
index_in_parent Returns the position that self holds in its parent’s array, indexed from 1.
next_sibling_node @return the next sibling (nil if unset)
parent?
previous_sibling_node @return the previous sibling (nil if unset)
to_s
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.