Class: XPath::Expression::Inverse
- Inherits:
-
Unary
- Object
- XPath::Expression
- Unary
- XPath::Expression::Inverse
- Defined in:
- lib/xpath/expression.rb
Constant Summary
Constants included from XPath
Instance Method Summary collapse
Methods inherited from Unary
Methods inherited from XPath::Expression
#and, #apply, #current, #equals, #inverse, #is, #next_sibling, #normalize, #one_of, #or, #string_literal, #to_s, #to_xpaths, #union, #where, #wrap_xpath
Methods included from XPath
#anywhere, #attr, #child, #contains, #css, #current, #descendant, generate, #name, #string, #tag, #text, #var, #varstring
Constructor Details
This class inherits a constructor from XPath::Expression::Unary
Instance Method Details
#to_xpath(predicate = nil) ⇒ Object
204 205 206 |
# File 'lib/xpath/expression.rb', line 204 def to_xpath(predicate=nil) "not(#{@expression.to_xpath(predicate)})" end |