Class: HTML5::TreeBuilders::Hpricot::CommentNode

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

Instance Attribute Summary

Attributes inherited from Node

#hpricot

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::Hpricot::Node

Class Method Details

.hpricot_classObject



192
193
194
# File 'lib/html5/treebuilders/hpricot.rb', line 192

def self.hpricot_class
  ::Hpricot::Comment
end

Instance Method Details

#printTree(indent = 0) ⇒ Object



196
197
198
# File 'lib/html5/treebuilders/hpricot.rb', line 196

def printTree(indent=0)
  "\n|#{' ' * indent}<!-- #{hpricot.content} -->"
end