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
rubysl-rexml-2.0.1 lib/rexml/dtd/elementdecl.rb
rhodes-3.5.1.12 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-3.3.5 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-3.4.2 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-3.3.4 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-3.3.3 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-3.3.3.beta.4 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-3.3.3.beta.3 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-3.3.3.beta.2 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-3.3.3.beta.1 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-3.3.2 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-3.3.2.beta.7 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-3.3.2.beta.6 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-3.3.2.beta.5 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-3.3.2.beta.4 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-3.3.2.beta.3 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-3.3.2.beta.2 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-3.3.2.beta.1 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-3.3.1 lib/extensions/rexml/rexml/dtd/elementdecl.rb
rhodes-3.3.0 lib/extensions/rexml/rexml/dtd/elementdecl.rb