method
compare
v1_9_3_392 -
Show latest stable
- Class:
REXML::XPathParser
compare(a, op, b)private
No documentation available.
# File lib/rexml/xpath_parser.rb, line 779
def compare a, op, b
#puts "COMPARE #{a.inspect}(#{a.class.name}) #{op} #{b.inspect}(#{b.class.name})"
case op
when :eq
a == b
when :neq
a != b
when :lt
a < b
when :lteq
a <= b
when :gt
a > b
when :gteq
a >= b
when :and
a and b
when :or
a or b
else
false
end
end