Sha256: f91e45c0cdcac43cd6322699fd9d65db424a4c966ceecf3934d690f297de9c8b

Contents?: true

Size: 376 Bytes

Versions: 16

Compression:

Stored size: 376 Bytes

Contents

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

    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

16 entries across 15 versions & 7 rubygems

Version Path
tdiary-5.0.5 vendor/bundle/gems/xpath-2.0.0/lib/xpath/expression.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/xpath-2.0.0/lib/xpath/expression.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/xpath-2.0.0/lib/xpath/expression.rb
tdiary-5.0.4 vendor/bundle/gems/xpath-2.0.0/lib/xpath/expression.rb
tdiary-5.0.2 vendor/bundle/gems/xpath-2.0.0/lib/xpath/expression.rb
tdiary-5.0.1 vendor/bundle/gems/xpath-2.0.0/lib/xpath/expression.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/xpath-2.0.0/lib/xpath/expression.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/xpath-2.0.0/lib/xpath/expression.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/xpath-2.0.0/lib/xpath/expression.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/xpath-2.0.0/lib/xpath/expression.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/xpath-2.0.0/lib/xpath/expression.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/xpath-2.0.0/lib/xpath/expression.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/xpath-2.0.0/lib/xpath/expression.rb
swipe-rails-0.0.5 vendor/bundle/gems/xpath-2.0.0/lib/xpath/expression.rb
xpath-2.0.0 lib/xpath/expression.rb
xpath-2.0.0.beta1 lib/xpath/expression.rb