Class: HTML5::TreeBuilders::SimpleTree::CommentNode
- Inherits:
-
Node
- Object
- Base::Node
- Node
- HTML5::TreeBuilders::SimpleTree::CommentNode
- Defined in:
- lib/html5/treebuilders/simpletree.rb
Instance Attribute Summary
Attributes inherited from Node
Attributes inherited from Base::Node
Instance Method Summary collapse
-
#initialize(value) ⇒ CommentNode
constructor
A new instance of CommentNode.
- #to_s ⇒ Object
Methods inherited from Node
#appendChild, #cloneNode, #hasContent, #insertBefore, #insertText, #printTree, #removeChild
Methods inherited from Base::Node
#appendChild, #cloneNode, #hasContent, #insertBefore, #insertText, #removeChild, #reparentChildren
Constructor Details
#initialize(value) ⇒ CommentNode
Returns a new instance of CommentNode.
154 155 156 157 |
# File 'lib/html5/treebuilders/simpletree.rb', line 154 def initialize value super nil @value = value end |
Instance Method Details
#to_s ⇒ Object
159 160 161 |
# File 'lib/html5/treebuilders/simpletree.rb', line 159 def to_s "<!-- %s -->" % value end |