Sha256: f20881c811a2b0193eabb33ebe33065f48bff53fa163b9f67c5fd5bc7a760bfd

Contents?: true

Size: 420 Bytes

Versions: 147

Compression:

Stored size: 420 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

147 entries across 147 versions & 4 rubygems

Version Path
rhodes-7.6.0 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-7.5.1 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-7.4.1 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-7.1.17 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-6.2.0 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-6.0.11 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-5.5.18 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-5.5.17 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-5.5.15 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-5.5.0.22 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-5.5.2 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-5.5.0.7 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-5.5.0.3 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-5.5.0 lib/extensions/rexml/rexml/dtd/elementdecl.rb
tauplatform-1.0.3 lib/extensions/rexml/rexml/dtd/elementdecl.rb
tauplatform-1.0.2 lib/extensions/rexml/rexml/dtd/elementdecl.rb
tauplatform-1.0.1 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rubysl-rexml-2.0.4 lib/rexml/dtd/elementdecl.rb
rubysl-rexml-2.0.3 lib/rexml/dtd/elementdecl.rb
rubysl-rexml-2.0.2 lib/rexml/dtd/elementdecl.rb