Class: HTML5::TreeBuilders::SimpleTree::TextNode
- Inherits:
-
Node
- Object
- Base::Node
- Node
- HTML5::TreeBuilders::SimpleTree::TextNode
- Defined in:
- lib/feed_tools/vendor/html5/lib/html5/treebuilders/simpletree.rb
Instance Attribute Summary
Attributes inherited from Node
Attributes inherited from Base::Node
Instance Method Summary collapse
-
#initialize(value) ⇒ TextNode
constructor
A new instance of TextNode.
- #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) ⇒ TextNode
Returns a new instance of TextNode.
143 144 145 146 |
# File 'lib/feed_tools/vendor/html5/lib/html5/treebuilders/simpletree.rb', line 143 def initialize value super nil @value = value end |
Instance Method Details
#to_s ⇒ Object
148 149 150 |
# File 'lib/feed_tools/vendor/html5/lib/html5/treebuilders/simpletree.rb', line 148 def to_s '"%s"' % value end |