# File lib/xpath/expression.rb, line 96 def to_xpath(predicate=nil) "#{@left.to_xpath(predicate)}[#{@right.to_xpath(predicate)}]" end