Class: Canon::Xml::Nodes::RootNode

Inherits:
Canon::Xml::Node show all
Defined in:
lib/canon/xml/nodes/root_node.rb

Overview

Root node representing the document root

Instance Attribute Summary

Attributes inherited from Canon::Xml::Node

#children, #parent

Instance Method Summary collapse

Methods inherited from Canon::Xml::Node

#add_child, #in_node_set=, #in_node_set?, #initialize

Constructor Details

This class inherits a constructor from Canon::Xml::Node

Instance Method Details

#nameObject



10
11
12
# File 'lib/canon/xml/nodes/root_node.rb', line 10

def name
  "#document"
end

#node_typeObject



14
15
16
# File 'lib/canon/xml/nodes/root_node.rb', line 14

def node_type
  :root
end