Class TagTreeScanner::TextNode
In: TagTreeScanner.rb
Parent: Object

A TextNode holds raw text inside a Tag. Generally, TextNodes are created automatically by the Tag#<< method.

Methods

<<   dup   new   to_xml  

Attributes

info  [RW]  A hash which may be used to store ‘extra’ information
next_sibling  [RW]  The Tag or TextNode that comes after this one (may be nil)
parent_tag  [RW]  The Tag that is a parent of this TextNode (may be nil)
previous_sibling  [RW]  The Tag or TextNode that comes before this one (may be nil)
text  [RW]  The string contents of this text node

Public Class methods

text:The text to start out with

Public Instance methods

additional_text:The text to add

Appends the provided text to the end of the current text

Returns the new text value

Returns a copy of this text node

Returns the contents of this node, modified to be made XML-safe by calling String#xmlsafe.

[Validate]