Class: FilterParam::Operators::Not
- Inherits:
-
FilterParam::Operator
- Object
- FilterParam::Operator
- FilterParam::Operators::Not
- Defined in:
- lib/filter_param/operators/not.rb
Class Method Summary collapse
Methods inherited from FilterParam::Operator
binaries, for, operator_tag, register, tag, type, unaries
Class Method Details
.sql(expression_operator, *expression_operands) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/filter_param/operators/not.rb', line 6 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 |