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
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/xpath-3.2.0/lib/xpath/expression.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/xpath-3.2.0/lib/xpath/expression.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/xpath-3.2.0/lib/xpath/expression.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/xpath-3.2.0/lib/xpath/expression.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.1.5 vendor/bundle/ruby/2.7.0/gems/xpath-3.2.0/lib/xpath/expression.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/xpath-3.2.0/lib/xpath/expression.rb