Class: HTML5::TreeBuilders::REXML::DocumentFragment
- Inherits:
-
Element
- Object
- Base::Node
- Node
- Element
- HTML5::TreeBuilders::REXML::DocumentFragment
- Defined in:
- lib/html5/treebuilders/rexml.rb
Instance Attribute Summary
Attributes inherited from Element
Attributes inherited from Node
Attributes inherited from Base::Node
Instance Method Summary collapse
-
#initialize ⇒ DocumentFragment
constructor
A new instance of DocumentFragment.
- #printTree(indent = 0) ⇒ Object
Methods inherited from Element
#attributes=, #cloneNode, rxclass
Methods inherited from Node
#appendChild, #hasContent, #insertBefore, #insertText, #removeChild
Methods inherited from Base::Node
#appendChild, #cloneNode, #hasContent, #insertBefore, #insertText, #removeChild, #reparentChildren
Constructor Details
#initialize ⇒ DocumentFragment
Returns a new instance of DocumentFragment.
147 148 149 |
# File 'lib/html5/treebuilders/rexml.rb', line 147 def initialize super nil end |
Instance Method Details
#printTree(indent = 0) ⇒ Object
151 152 153 154 155 156 157 |
# File 'lib/html5/treebuilders/rexml.rb', line 151 def printTree indent=0 tree = "" for child in childNodes tree += child.printTree(indent+2) end return tree end |