Class: XPath::Expression::Multiple
- Inherits:
-
XPath::Expression
- Object
- XPath::Expression
- XPath::Expression::Multiple
- Defined in:
- lib/xpath/expression.rb
Direct Known Subclasses
Constant Summary
Constants included from XPath
Instance Method Summary collapse
-
#initialize(left, expressions) ⇒ Multiple
constructor
A new instance of Multiple.
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(left, expressions) ⇒ Multiple
Returns a new instance of Multiple.
25 26 27 28 |
# File 'lib/xpath/expression.rb', line 25 def initialize(left, expressions) @left = wrap_xpath(left) @expressions = expressions.map { |e| wrap_xpath(e) } end |