Class: Arel::Predicates::NotMatch

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



173
174
175
# File 'lib/arel/algebra/predicates.rb', line 173

def complement
  Match.new(operand1, operand2)
end

#eval(row) ⇒ Object



82
83
84
# File 'lib/arel/engines/memory/predicates.rb', line 82

def eval(row)
  operand1.eval(row) !~ operand2.eval(row)
end

#predicate_sqlObject



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

def predicate_sql; 'NOT LIKE' end