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, #parse_errors, #parse_errors=, #text_content

Constructor Details

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

Instance Method Details

#children=(new_children) ⇒ Object



16
17
18
# File 'lib/canon/xml/nodes/root_node.rb', line 16

def children=(new_children)
  @children = new_children
end

#nameObject



8
9
10
# File 'lib/canon/xml/nodes/root_node.rb', line 8

def name
  "#document"
end

#node_typeObject



12
13
14
# File 'lib/canon/xml/nodes/root_node.rb', line 12

def node_type
  :root
end