class Arboretum::DocTree::Elements::DocRootElement
Special type of element to represent the root element of a document A DocRootElement
has no output but simply acts as a wrapper for the top level elements of an imported document
Public Class Methods
new()
click to toggle source
Calls superclass method
Arboretum::DocTree::Elements::Element::new
# File lib/arboretum/doctree.rb, line 982 def initialize super() end
Public Instance Methods
can_have_children?()
click to toggle source
# File lib/arboretum/doctree.rb, line 986 def can_have_children? true end
copy()
click to toggle source
DocRootElement
deep copy method
# File lib/arboretum/doctree.rb, line 991 def copy element_copy = DocRootElement.new element_copy.set_children!(@children.map {|child| child.copy}) element_copy end
to_s()
click to toggle source
# File lib/arboretum/doctree.rb, line 997 def to_s "<Root_Element>" end