Class: XPath::Expression::Unary
- Inherits:
-
XPath::Expression
- Object
- XPath::Expression
- XPath::Expression::Unary
- Defined in:
- lib/xpath/expression.rb
Direct Known Subclasses
Anywhere, Inverse, Name, NormalizedSpace, StringFunction, Tag, Text
Constant Summary
Constants included from XPath
Instance Method Summary collapse
-
#initialize(expression) ⇒ Unary
constructor
A new instance of Unary.
Methods inherited from XPath::Expression
#and, #apply, #current, #equals, #inverse, #is, #next_sibling, #normalize, #one_of, #or, #string_literal, #to_s, #to_xpath, #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
#initialize(expression) ⇒ Unary
Returns a new instance of Unary.
12 13 14 |
# File 'lib/xpath/expression.rb', line 12 def initialize(expression) @expression = wrap_xpath(expression) end |