Class: REXML::DTD::ElementDecl
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::REXML::Child
|
|
Instance Chain:
self,
::REXML::Child,
::REXML::Node
|
|
Inherits: |
REXML::Child
|
Defined in: | lib/rexml/dtd/elementdecl.rb |
Constant Summary
-
PATTERN_RE =
PATTERN_RE
= /^s*(#START.*?)>/um/^\s*#{START}\s+((?:[:\w][-\.\w]*:)?[-!\*\.\w]*)(.*?)>/
-
START =
# File 'lib/rexml/dtd/elementdecl.rb', line 6"<!ELEMENT"
-
START_RE =
# File 'lib/rexml/dtd/elementdecl.rb', line 7/^\s*#{START}/um
Class Method Summary
Instance Attribute Summary
::REXML::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. |
::REXML::Node - Included
Instance Method Summary
::REXML::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. |
::REXML::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(match) ⇒ ElementDecl
[ GitHub ]
# File 'lib/rexml/dtd/elementdecl.rb', line 12
def initialize match @name = match[1] @rest = match[2] end