Sha256: 2f810b495fdf5d8f69bc8756591bb48e06533fd38a1e214d95dd627137be7fad
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
module FilterParam module Operators class Not < Operator operator_tag :not def self.sql(expression_operator, *expression_operands) operator = Operator.for(expression_operator) return operator.negated_sql(*expression_operands) if operator.respond_to?(:negated_sql) "NOT #{operator.sql(*expression_operands)}" end end end end FilterParam::Operator.register(FilterParam::Operators::Not)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
filter_param-0.1.2 | lib/filter_param/operators/not.rb |