Class: HTML5::TreeBuilders::REXML::CommentNode

Inherits:
Node show all
Defined in:
lib/html5/treebuilders/rexml.rb

Instance Attribute Summary

Attributes inherited from Node

#rxobj

Attributes inherited from Base::Node

#childNodes, #flags, #parent

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#appendChild, #hasContent, #initialize, #insertBefore, #insertText, #removeChild

Methods inherited from Base::Node

#appendChild, #cloneNode, #hasContent, #initialize, #insertBefore, #insertText, #removeChild, #reparentChildren

Constructor Details

This class inherits a constructor from HTML5::TreeBuilders::REXML::Node

Class Method Details

.rxclassObject



176
177
178
# File 'lib/html5/treebuilders/rexml.rb', line 176

def self.rxclass
  ::REXML::Comment
end

Instance Method Details

#printTree(indent = 0) ⇒ Object



180
181
182
# File 'lib/html5/treebuilders/rexml.rb', line 180

def printTree indent=0
  "\n|#{' ' * indent}<!-- #{rxobj.string} -->"
end