Sha256: c494fe7fe292b773b7b85ca28175639246cac35837389627a2e39e6c6ad79a00

Contents?: true

Size: 385 Bytes

Versions: 2

Compression:

Stored size: 385 Bytes

Contents

require "rexml/child"
module REXML
	module DTD
		class ElementDecl < Child
			START = "<!ELEMENT"
			START_RE = /^\s*#{START}/um
			PATTERN_RE = /^\s*(#{START}.*?)>/um
			PATTERN_RE = /^\s*#{START}\s+((?:[:\w_][-\.\w_]*:)?[-!\*\.\w_]*)(.*?)>/
			#\s*((((["']).*?\5)|[^\/'">]*)*?)(\/)?>/um, true)

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

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
rubysl-rexml-1.0.0 lib/rexml/dtd/elementdecl.rb
ruby_on_ruby-0.0.1 vendor/javascripts/emscripted-ruby/lib/rexml/dtd/elementdecl.rb