# File lib/ruote/exp/condition.rb, line 83 def self.compare (m) return (m[1].=~(Regexp.new(m[3])) != nil) if m[2] == '=~' a = narrow_to_f(m[1]) b = narrow_to_f(m[3]) if a.class != b.class a = m[1] b = m[3] end #a.send(m[2], b) # ruby 1.8.x doesn't like that one a = strip(a) b = strip(b) m[2] == '!=' ? ( ! a.send('==', b)) : a.send(m[2], b) end