Class: XPath::Expression

### Home Classes Methods

### In Files

- lib/xpath/expression.rb

### Parent

Object

### Methods

- ::new
- #current
- #to_s
- #to_xpath

### Included Modules

- XPath::DSL::ExpressionLevel

### Class/Module Index

Quicksearch

- XPath
- XPath::DSL
- XPath::DSL::ExpressionLevel
- XPath::DSL::TopLevel
- XPath::Expression
- XPath::HTML
- XPath::Literal
- XPath::Renderer
- XPath::Union

No matching classes.

# XPath::Expression

### Attributes

arguments[RW]
expression[RW]

### Public Class Methods

new(expression, *arguments) click to toggle source

    # File lib/xpath/expression.rb, line 6
    def initialize(expression, *arguments)
      @expression = expression
      @arguments = arguments
    end

### Public Instance Methods

current() click to toggle source

    # File lib/xpath/expression.rb, line 11
    def current
      self
    end

to_s(type=nil) click to toggle source
Alias for: to_xpath
to_xpath(type=nil) click to toggle source

    # File lib/xpath/expression.rb, line 15
    def to_xpath(type=nil)
      Renderer.render(self, type)
    end

Also aliased as: to_s

[Validate]

Generated with the Darkfish Rdoc Generator 2.