Class: REXML::Declaration
- Defined in:
- lib/extensions/rexml/rexml/doctype.rb
Overview
This is an abstract class. You never use this directly; it serves as a parent class for the specific declarations.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Child
Instance Method Summary collapse
-
#initialize(src) ⇒ Declaration
constructor
A new instance of Declaration.
- #to_s ⇒ Object
-
#write(output, indent) ⇒ Object
DEPRECATED See REXML::Formatters.
Methods inherited from Child
#bytes, #document, #next_sibling=, #previous_sibling=, #remove, #replace_with
Methods included from Node
#each_recursive, #find_first_recursive, #indent, #index_in_parent, #next_sibling_node, #parent?, #previous_sibling_node
Constructor Details
#initialize(src) ⇒ Declaration
Returns a new instance of Declaration.
204 205 206 207 |
# File 'lib/extensions/rexml/rexml/doctype.rb', line 204 def initialize src super() @string = src end |