Sha256: 14b035f6709bf9f595facc7afab026977b1f2a07524494d989aa94f5e306913e

Contents?: true

Size: 359 Bytes

Versions: 12

Compression:

Stored size: 359 Bytes

Contents

module XPath
  class Expression
    attr_accessor :expression, :arguments
    include XPath::DSL

    def initialize(expression, *arguments)
      @expression = expression
      @arguments = arguments
    end

    def current
      self
    end

    def to_xpath(type=nil)
      Renderer.render(self, type)
    end
    alias_method :to_s, :to_xpath
  end
end

Version data entries

12 entries across 10 versions & 3 rubygems

Version Path
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/xpath-2.1.0/lib/xpath/expression.rb
tdiary-5.0.11 vendor/bundle/gems/xpath-3.1.0/lib/xpath/expression.rb
tdiary-5.0.9 vendor/bundle/gems/xpath-3.1.0/lib/xpath/expression.rb
xpath-3.1.0 lib/xpath/expression.rb
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/xpath-2.1.0/lib/xpath/expression.rb
tdiary-5.0.8 vendor/bundle/ruby/2.5.0/gems/xpath-3.0.0/lib/xpath/expression.rb
tdiary-5.0.8 vendor/bundle/gems/xpath-3.0.0/lib/xpath/expression.rb
xpath-3.0.0 lib/xpath/expression.rb
tdiary-5.0.7 vendor/bundle/gems/xpath-2.1.0/lib/xpath/expression.rb
tdiary-5.0.6 vendor/bundle/gems/xpath-2.1.0/lib/xpath/expression.rb
tdiary-5.0.5 vendor/bundle/gems/xpath-2.1.0/lib/xpath/expression.rb
xpath-2.1.0 lib/xpath/expression.rb