Class: Glimmer::XML::HtmlNode

Inherits:
Node
  • Object
show all
Defined in:
lib/glimmer/xml/html_node.rb

Instance Attribute Summary

Attributes inherited from Node

#attributes, #children, #contents, #is_attribute, #is_name_space, #name, #name_space, #parent

Instance Method Summary collapse

Methods inherited from Node

#id, #initialize, #method_missing, #name_space_context?, #rubyize, #text_command

Constructor Details

This class inherits a constructor from Glimmer::XML::Node

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Glimmer::XML::Node

Instance Method Details

#to_xmlObject Also known as: to_html, to_s



29
30
31
32
33
# File 'lib/glimmer/xml/html_node.rb', line 29

def to_xml
  node_visitor = @name_space.nil? ? HtmlVisitor.new : XmlVisitor.new
  DepthFirstSearchIterator.new(self, node_visitor).iterate
  node_visitor.document
end