Sha256: 48b84a618748336a22fca1252a4cb34ce39612d6d0dfd8130836cd2221cbac49

Contents?: true

Size: 392 Bytes

Versions: 35

Compression:

Stored size: 392 Bytes

Contents

# frozen_string_literal: true

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

35 entries across 23 versions & 6 rubygems

Version Path
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.1.4 vendor/bundle/ruby/2.7.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.1.3 vendor/bundle/ruby/2.6.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.1.3 vendor/bundle/ruby/2.7.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.1.2 vendor/bundle/ruby/2.7.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.1.1 vendor/bundle/ruby/2.7.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.1.0 vendor/bundle/gems/xpath-3.2.0/lib/xpath/expression.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/xpath-3.2.0/lib/xpath/expression.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.0.13 vendor/bundle/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.0.12.1 vendor/bundle/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.0.11 vendor/bundle/gems/xpath-3.2.0/lib/xpath/expression.rb
xpath-3.2.0 lib/xpath/expression.rb