Class: HTML::CDATA

Inherits:
Text show all
Defined in:
lib/html/node.rb

Overview

A CDATA node is simply a text node with a specialized way of displaying itself.

Instance Attribute Summary

Attributes inherited from Text

#content

Attributes inherited from Node

#children, #line, #parent, #position

Instance Method Summary collapse

Methods inherited from Text

#==, #find, #initialize, #match

Methods inherited from Node

#==, #detach, #each, #find, #find_all, #initialize, #match, #next_element, #next_sibling, parse, #previous_element, #previous_sibling, #tag?, #validate_conditions

Constructor Details

This class inherits a constructor from HTML::Text

Instance Method Details

#to_sObject

:nodoc:



268
269
270
# File 'lib/html/node.rb', line 268

def to_s
  "<![CDATA[#{super}]>"
end