Class RTF::Node
In: lib/rtf/node.rb
Parent: Object

This class represents an element within an RTF document. The class provides a base class for more specific node types.

Methods

is_root?   new   next_node   previous_node   root  

Attributes

parent  [R]  Attribute accessor.
parent  [W]  Attribute mutator.

Public Class methods

This is the constructor for the Node class.

Parameters

parent:A reference to the Node that owns the new Node. May be nil to indicate a base or root node.

Public Instance methods

This method is used to determine whether a Node object represents a root or base element. The method returns true if the Nodes parent is nil, false otherwise.

This method retrieves a Node objects next peer node, returning nil if the Node has no previous peer.

This method retrieves a Node objects previous peer node, returning nil if the Node has no previous peer.

This method traverses a Node tree to locate the root element.

[Validate]