Class: HTML5::TreeBuilders::SimpleTree::DocumentType
- Inherits:
-
Node
- Object
- Base::Node
- Node
- HTML5::TreeBuilders::SimpleTree::DocumentType
- Defined in:
- lib/feed_tools/vendor/html5/lib/html5/treebuilders/simpletree.rb
Instance Attribute Summary collapse
-
#public_id ⇒ Object
Returns the value of attribute public_id.
-
#system_id ⇒ Object
Returns the value of attribute system_id.
Attributes inherited from Node
Attributes inherited from Base::Node
Instance Method Summary collapse
-
#initialize(name) ⇒ DocumentType
constructor
A new instance of DocumentType.
- #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(name) ⇒ DocumentType
Returns a new instance of DocumentType.
121 122 123 124 125 |
# File 'lib/feed_tools/vendor/html5/lib/html5/treebuilders/simpletree.rb', line 121 def initialize name super name @public_id = nil @system_id = nil end |
Instance Attribute Details
#public_id ⇒ Object
Returns the value of attribute public_id.
115 116 117 |
# File 'lib/feed_tools/vendor/html5/lib/html5/treebuilders/simpletree.rb', line 115 def public_id @public_id end |
#system_id ⇒ Object
Returns the value of attribute system_id.
115 116 117 |
# File 'lib/feed_tools/vendor/html5/lib/html5/treebuilders/simpletree.rb', line 115 def system_id @system_id end |
Instance Method Details
#to_s ⇒ Object
117 118 119 |
# File 'lib/feed_tools/vendor/html5/lib/html5/treebuilders/simpletree.rb', line 117 def to_s "<!DOCTYPE #{name}>" end |