Class: Arel::Predicates::Not

Inherits:
Unary show all
Defined in:
lib/arel/algebra/predicates.rb,
lib/arel/engines/sql/predicates.rb,
lib/arel/engines/memory/predicates.rb

Instance Method Summary collapse

Methods inherited from Unary

#bind, #to_sql

Methods inherited from Predicate

#and, #not, #or

Instance Method Details

#complementObject



84
85
86
# File 'lib/arel/algebra/predicates.rb', line 84

def complement
  operand
end

#eval(row) ⇒ Object



16
17
18
# File 'lib/arel/engines/memory/predicates.rb', line 16

def eval(row)
  !operand.eval(row)
end

#predicate_sqlObject



16
# File 'lib/arel/engines/sql/predicates.rb', line 16

def predicate_sql; "NOT" end