class XPath::Expression

Attributes

arguments[RW]
expression[RW]

Public Class Methods

new(expression, *arguments) click to toggle source
# File lib/xpath/expression.rb, line 8
def initialize(expression, *arguments)
  @expression = expression
  @arguments = arguments
end

Public Instance Methods

current() click to toggle source
# File lib/xpath/expression.rb, line 13
def current
  self
end
to_s(type = nil)
Alias for: to_xpath
to_xpath(type = nil) click to toggle source
# File lib/xpath/expression.rb, line 17
def to_xpath(type = nil)
  Renderer.render(self, type)
end
Also aliased as: to_s