Sha256: b98027a5e68383a7dc93ee62a458859e59a087a8d0b6fb052d3b09d30c1abc8f

Contents?: true

Size: 473 Bytes

Versions: 67

Compression:

Stored size: 473 Bytes

Contents

module Dryml::Parser

  class Elements < REXML::Elements

    # Override to ensure DRYML elements are created
    def add(element=nil)
      rv = nil
      if element.nil?
        Dryml::Parser::Element.new("", self, @element.context)
      elsif not element.kind_of?(Element)
        Dryml::Parser::Element.new(element, self, @element.context)
      else
        @element << element
        element.context = @element.context
        element
      end
    end

  end

end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
dryml-2.0.0.pre7 lib/dryml/parser/elements.rb
dryml-2.0.0.pre6 lib/dryml/parser/elements.rb
dryml-2.0.0.pre5 lib/dryml/parser/elements.rb
dryml-2.0.0.pre4 lib/dryml/parser/elements.rb
dryml-1.3.2 lib/dryml/parser/elements.rb
dryml-1.3.1 lib/dryml/parser/elements.rb
dryml-2.0.0.pre3 lib/dryml/parser/elements.rb
dryml-2.0.0.pre2 lib/dryml/parser/elements.rb
dryml-2.0.0.pre1 lib/dryml/parser/elements.rb
dryml-1.4.0.pre8 lib/dryml/parser/elements.rb
dryml-1.4.0.pre7 lib/dryml/parser/elements.rb
dryml-1.4.0.pre6 lib/dryml/parser/elements.rb
dryml-1.4.0.pre5 lib/dryml/parser/elements.rb
dryml-1.4.0.pre4 lib/dryml/parser/elements.rb
dryml-1.4.0.pre3 lib/dryml/parser/elements.rb
dryml-1.4.0.pre2 lib/dryml/parser/elements.rb
dryml-1.1.0 lib/dryml/parser/elements.rb
dryml-1.3.0 lib/dryml/parser/elements.rb
dryml-1.3.0.RC4 lib/dryml/parser/elements.rb
dryml-1.3.0.RC3 lib/dryml/parser/elements.rb