Module: XPath::DSL::ExpressionLevel

### Home Classes Methods

### In Files

- lib/xpath/dsl.rb

### Methods

- #&
- #+
- #==
- #[]
- #and
- #equals
- #inverse
- #is
- #n
- #normalize
- #one_of
- #or
- #string_literal
- #union
- #where
- #|
- #~

### Included Modules

- XPath::DSL::TopLevel

### 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::DSL::ExpressionLevel

### Public Instance Methods

&(expression) click to toggle source
Alias for: and
+(*expressions) click to toggle source
Alias for: union
==(expression) click to toggle source
Alias for: equals
[](expression) click to toggle source
Alias for: where
and(expression) click to toggle source

    # File lib/xpath/dsl.rb, line 87
    def and(expression)
      Expression.new(:and, current, expression)
    end

Also aliased as: &
equals(expression) click to toggle source

    # File lib/xpath/dsl.rb, line 73
    def equals(expression)
      Expression.new(:equality, current, expression)
    end

Also aliased as: ==
inverse() click to toggle source

    # File lib/xpath/dsl.rb, line 97
    def inverse
      Expression.new(:inverse, current)
    end

Also aliased as: ~
is(expression) click to toggle source

    # File lib/xpath/dsl.rb, line 78
    def is(expression)
      Expression.new(:is, current, expression)
    end

n() click to toggle source
Alias for: normalize
normalize() click to toggle source

    # File lib/xpath/dsl.rb, line 106
    def normalize
      Expression.new(:normalized_space, current)
    end

Also aliased as: n
one_of(*expressions) click to toggle source

    # File lib/xpath/dsl.rb, line 69
    def one_of(*expressions)
      Expression.new(:one_of, current, expressions)
    end

or(expression) click to toggle source

    # File lib/xpath/dsl.rb, line 82
    def or(expression)
      Expression.new(:or, current, expression)
    end

Also aliased as: |
string_literal() click to toggle source

    # File lib/xpath/dsl.rb, line 102
    def string_literal
      Expression.new(:string_literal, self)
    end

union(*expressions) click to toggle source

    # File lib/xpath/dsl.rb, line 92
    def union(*expressions)
      Union.new(*[self, expressions].flatten)
    end

Also aliased as: +
where(expression) click to toggle source

    # File lib/xpath/dsl.rb, line 64
    def where(expression)
      Expression.new(:where, current, expression)
    end

Also aliased as: []
|(expression) click to toggle source
Alias for: or
~() click to toggle source
Alias for: inverse

[Validate]

Generated with the Darkfish Rdoc Generator 2.