Class: Arel::Predicates::Match

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, #eval, #initialize, #to_sql

Methods inherited from Unary

#==, #bind, #eval, #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



251
252
253
# File 'lib/arel/algebra/predicates.rb', line 251

def complement
  NotMatch.new(operand1, operand2)
end

#operatorObject



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

def operator; :=~ end

#predicate_sqlObject



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

def predicate_sql; 'LIKE' end