Sha256: 2f7da7d61f2a5c5fcf951c1e2c23c30dce567d74441139e1acbd9259bf9db0f1
Contents?: true
Size: 262 Bytes
Versions: 2
Compression:
Stored size: 262 Bytes
Contents
class ValueExpression < Arity1Operators def initialize(operand) @operand = operand end def to_sql operand end def evaluate(attributes = {}) if attributes.key? @operand attributes[@operand] else @operand end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lamep-0.2.1 | lib/lamep/Expressions/value_expression.rb |
lamep-0.2 | lib/lamep/Expressions/value_expression.rb |