<Toplevel Module>
Object
(
Builtin-Module
)
Child
(
REXML
)
ElementDecl
| ( |
REXML::DTD
)
| — | #4 |
1 require "rexml/child" 2 module REXML 3 module DTD 4 class ElementDecl < Child 5 START = "<!ELEMENT" 6 START_RE = /^\s*#{START}/um 7 PATTERN_RE = /^\s*(#{START}.*?)>/um 8 PATTERN_RE = /^\s*#{START}\s+((?:[:\w_][-\.\w_]*:)?[-!\*\.\w_]*)(.*?)>/ 9 #\s*((((["']).*?\5)|[^\/'">]*)*?)(\/)?>/um, true) 10 11 def initialize match 12 @name = match[1] 13 @rest = match[2] 14 end 15 end 16 end 17 end