Class: Arel::Predicates::NotIn

Inherits:
Binary 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 Binary

#==, #bind, #to_sql

Methods inherited from Predicate

#and, #not, #or

Instance Method Details

#complementObject



185
186
187
# File 'lib/arel/algebra/predicates.rb', line 185

def complement
  In.new(operand1, operand2)
end

#eval(row) ⇒ Object



94
95
96
# File 'lib/arel/engines/memory/predicates.rb', line 94

def eval(row)
  !(operand2.eval(row).include?(operand1.eval(row)))
end

#predicate_sqlObject



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

def predicate_sql; operand2.exclusion_predicate_sql end