Class: REXML::Declaration
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Child
|
|
Instance Chain:
|
|
Inherits: |
REXML::Child
|
Defined in: | lib/rexml/doctype.rb |
Overview
This is an abstract class. You never use this directly; it serves as a parent class for the specific declarations.
Class Method Summary
Instance Attribute Summary
Child - Inherited
#next_sibling | Alias for Node#next_sibling_node. |
#next_sibling= | Sets the next sibling of this child. |
#parent | The Parent of this object. |
#parent= | Sets the parent of this child to the supplied argument. |
#previous_sibling | Alias for Node#previous_sibling_node. |
#previous_sibling= | Sets the previous sibling of this child. |
Node - Included
Instance Method Summary
- #to_s
-
#write(output, indent)
DEPRECATED See Formatters
Child - Inherited
#bytes | This doesn't yet handle encodings. |
#document |
|
#remove | Removes this child from the parent. |
#replace_with | Replaces this object with another object. |
Node - Included
#each_recursive | Visit all subnodes of |
#find_first_recursive | Find (and return) first subnode (recursively) for which the block evaluates to true. |
#indent, | |
#index_in_parent | Returns the position that |
#next_sibling_node, #previous_sibling_node, | |
#to_s |
|
Constructor Details
.new(src) ⇒ Declaration
# File 'lib/rexml/doctype.rb', line 204
def initialize src super() @string = src end
Instance Method Details
#to_s
[ GitHub ]# File 'lib/rexml/doctype.rb', line 209
def to_s @string+'>' end
#write(output, indent)
DEPRECATED
See Formatters
# File 'lib/rexml/doctype.rb', line 216
def write( output, indent ) output << to_s end