Methods

Files

XPath::Expression::OneOf

Public Class Methods

new(left, right) click to toggle source
# File lib/xpath/expression.rb, line 161
def initialize(left, right)
  @left = wrap_xpath(left)
  @right = right.map { |r| wrap_xpath(r) }
end

Public Instance Methods

to_xpath(predicate=nil) click to toggle source
# File lib/xpath/expression.rb, line 166
def to_xpath(predicate=nil)
  @right.map { |r| "#{@left.to_xpath(predicate)} = #{r.to_xpath(predicate)}" }.join(' or ')
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.