Represents a node in the tree. Nodes are never encountered except as superclasses of other objects. Nodes have siblings.
| Public Methods | |
|---|---|
| each_ |
Visit all subnodes of self recursively |
| find_ |
Find (and return) first subnode (recursively) for which the block evaluates to true. Returns nil if none was found. |
| indent | |
| index_ |
Returns the position that self holds in its parent’s array, indexed from 1. |
| next_ |
@return the next sibling (nil if unset) |
| parent? | |
| previous_ |
@return the previous sibling (nil if unset) |
| to_ |
|
<code/>and<pre/>for code samples.