Class: Oga::XML::Text

Inherits:
CharacterNode show all
Defined in:
lib/oga/xml/text.rb

Overview

Class containing information about a single text node. Text nodes don't have any children, attributes and the likes; just text.

Instance Attribute Summary

Attributes inherited from CharacterNode

#text

Attributes inherited from Node

#node_set

Instance Method Summary collapse

Methods inherited from CharacterNode

#initialize, #inspect

Methods inherited from Node

#after, #before, #children, #children=, #initialize, #next, #next_element, #parent, #previous, #previous_element, #remove, #root_node

Methods included from Traversal

#each_node

Constructor Details

This class inherits a constructor from Oga::XML::CharacterNode

Instance Method Details

#to_xmlObject

See Also:

  • Oga::XML::Text.[Oga[Oga::XML[Oga::XML::CharacterNode[Oga::XML::CharacterNode#to_xml]

11
12
13
# File 'lib/oga/xml/text.rb', line 11

def to_xml
  return Entities.encode(super)
end