lib/lamep/Expressions/unary_minus.rb in lamep-0.1 vs lib/lamep/Expressions/unary_minus.rb in lamep-0.2

- old
+ new

@@ -5,6 +5,10 @@ operand = @operand.to_sql fail(ArgumentError, ("#{operand} is not a number")) if operand !~ /^\d+$/ -operand.to_i end + def evaluate(attributes={}) + -@operand.evaluate(attributes).to_i + end + end