Class: Arel::Predicates::And

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

#eval, #to_sql

Methods inherited from Binary

#==, #bind, #eval, #to_sql

Methods inherited from Predicate

#and, #not, #or

Instance Method Details

#complementObject



107
108
109
# File 'lib/arel/algebra/predicates.rb', line 107

def complement
  Or.new(operand1.complement, operand2.complement)
end

#operatorObject



48
# File 'lib/arel/engines/memory/predicates.rb', line 48

def operator; :and end

#predicate_sqlObject



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

def predicate_sql; "AND" end