Sha256: 2613d0fe3fc8316615a85df0cfe6f4dbadfeac4c7fe06aa95124609fa9db22d8
Contents?: true
Size: 254 Bytes
Versions: 2
Compression:
Stored size: 254 Bytes
Contents
class GreaterThan < Arity2Operators Operator.register('>', GreaterThan, 8) def to_sql "(#{@left.to_sql} > #{@right.to_sql})" end def evaluate(attributes={}) @left.evaluate(attributes).to_i > @right.evaluate(attributes).to_i end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lamep-0.2.1 | lib/lamep/Expressions/greater_than.rb |
lamep-0.2 | lib/lamep/Expressions/greater_than.rb |