Class: Arel::Predicates::Or

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



113
114
115
# File 'lib/arel/algebra/predicates.rb', line 113

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

#operatorObject



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

def operator; :or end

#predicate_sqlObject



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

def predicate_sql; "OR" end