Class: REXML::DTD::ElementDecl

Inherits:
Child show all
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

#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)



12
13
14
15
# File 'lib/rexml/dtd/elementdecl.rb', line 12

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