Class: Arel::Predicates::NotMatch

Inherits:
Binary show all
Defined in:
lib/arel/algebra/predicates.rb

Instance Attribute Summary

Attributes inherited from Binary

#operand2

Attributes inherited from Unary

#operand

Instance Method Summary collapse

Methods inherited from Binary

#==, #bind, #initialize, #to_sql

Methods inherited from Unary

#==, #bind, #initialize, #to_sql

Methods inherited from Predicate

#and, #not, #or

Constructor Details

This class inherits a constructor from Arel::Predicates::Binary

Instance Method Details

#complementObject



261
262
263
# File 'lib/arel/algebra/predicates.rb', line 261

def complement
  Match.new(operand1, operand2)
end

#eval(row) ⇒ Object



265
266
267
# File 'lib/arel/algebra/predicates.rb', line 265

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

#predicate_sqlObject



269
# File 'lib/arel/algebra/predicates.rb', line 269

def predicate_sql; 'NOT LIKE' end