- Inheritance
Represents a node in the tree. Nodes are never encountered except as superclasses of other objects. Nodes have siblings.
Methods
Instance
Visibility | Signature |
---|---|
public | each_recursive () {|node| ...} |
public | find_first_recursive () {|node| ...} |
public | indent (to, ind) |
public | index_in_parent () |
public | next_sibling_node () |
public | parent? () |
public | previous_sibling_node () |
public | to_s (indent=nil) |
Instance Method Detail
each_recursive() {|node| ...}
Visit all subnodes of self recursively
find_first_recursive() {|node| ...}
Find (and return) first subnode (recursively) for which the block evaluates to true. Returns nil if none was found.
indent(to, ind)
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(indent=nil)
indent: | DEPRECATED This parameter is now ignored. See the formatters in the REXML::Formatters package for changing the output style. |