Class: Arel::Predicates::NotIn
- 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
Methods inherited from Predicate
Instance Method Details
#complement ⇒ Object
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_sql ⇒ Object
100 |
# File 'lib/arel/engines/sql/predicates.rb', line 100 def predicate_sql; operand2.exclusion_predicate_sql end |