Class: REXML::DTD::ElementDecl
- Defined in:
- lib/rexml/dtd/elementdecl.rb
Constant Summary collapse
- START =
"<!ELEMENT"- START_RE =
/^\s*#{START}/um
- PATTERN_RE =
PATTERN_RE = /^\s*(#START.*?)>/um
/^\s*#{START}\s+((?:[:\w][-\.\w]*:)?[-!\*\.\w]*)(.*?)>/
Instance Attribute Summary
Attributes inherited from Child
Instance Method Summary collapse
-
#initialize(match) ⇒ ElementDecl
constructor
\s*(((([“‘]).*?\5)|[^\/’”>]*)*?)(\/)?>/um, true).
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, #to_s
Constructor Details
#initialize(match) ⇒ ElementDecl
\s*(((([“‘]).*?\5)|[^\/’”>]*)*?)(\/)?>/um, true)
11 12 13 14 |
# File 'lib/rexml/dtd/elementdecl.rb', line 11 def initialize match @name = match[1] @rest = match[2] end |