Method: XPath::Expression::OneOf#to_xpath
- Defined in:
- lib/xpath/expression.rb
#to_xpath(predicate = nil) ⇒ Object
159 160 161 |
# File 'lib/xpath/expression.rb', line 159 def to_xpath(predicate=nil) @right.map { |r| "#{@left.to_xpath(predicate)} = #{r.to_xpath(predicate)}" }.join(' or ') end |