Class: REXML::DTD::ElementDecl

Inherits:
Child show all
Defined in:
lib/extensions/rexml/rexml/dtd/elementdecl.rb

Constant Summary collapse

START =
"<!ELEMENT"
START_RE =
/^\s*#{START}/um
PATTERN_RE =
/^\s*#{START}\s+((?:[:\w_][-\.\w_]*:)?[-!\*\.\w_]*)(.*?)>/

Instance Attribute Summary

Attributes inherited from Child

#parent

Instance Method Summary collapse

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/extensions/rexml/rexml/dtd/elementdecl.rb', line 11

def initialize match
  @name = match[1]
  @rest = match[2]
end