Class: XPath::Union

### Home Classes Methods

### In Files

- lib/xpath/union.rb

### Parent

Object

### Methods

- ::new
- #each
- #expression
- #method_missing
- #to_s
- #to_xpath

### Included Modules

- Enumerable

### 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::Union

### Attributes

arguments[R]
expressions[R]

### Public Class Methods

new(*expressions) click to toggle source

    # File lib/xpath/union.rb, line 8
    def initialize(*expressions)
      @expressions = expressions
    end

### Public Instance Methods

each(&block) click to toggle source

    # File lib/xpath/union.rb, line 16
    def each(&block)
      arguments.each(&block)
    end

expression() click to toggle source

    # File lib/xpath/union.rb, line 12
    def expression
      :union
    end

method_missing(*args) click to toggle source

    # File lib/xpath/union.rb, line 20
    def method_missing(*args)
      XPath::Union.new(*arguments.map { |e| e.send(*args) })
    end

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

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

Also aliased as: to_s

[Validate]

Generated with the Darkfish Rdoc Generator 2.