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.2.6 lib/dryml/parser/elements.rb
dryml-2.2.5 lib/dryml/parser/elements.rb
dryml-2.2.4 lib/dryml/parser/elements.rb
dryml-2.2.3 lib/dryml/parser/elements.rb
dryml-2.2.2 lib/dryml/parser/elements.rb
dryml-2.2.1 lib/dryml/parser/elements.rb
dryml-2.2.0 lib/dryml/parser/elements.rb
dryml-2.1.2 lib/dryml/parser/elements.rb
dryml-2.1.1 lib/dryml/parser/elements.rb
dryml-2.1.0 lib/dryml/parser/elements.rb
dryml-2.1.0.pre4 lib/dryml/parser/elements.rb
dryml-2.1.0.pre3 lib/dryml/parser/elements.rb
dryml-2.1.0.pre2 lib/dryml/parser/elements.rb
dryml-2.1.0.pre1 lib/dryml/parser/elements.rb
dryml-2.0.1 lib/dryml/parser/elements.rb
dryml-2.0.0 lib/dryml/parser/elements.rb
dryml-2.0.0.pre10 lib/dryml/parser/elements.rb
dryml-2.0.0.pre9 lib/dryml/parser/elements.rb
dryml-2.0.0.pre8 lib/dryml/parser/elements.rb
dryml-1.3.3 lib/dryml/parser/elements.rb