Class: Arel::Predicates::Or

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

#eval, #to_sql

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



168
169
170
# File 'lib/arel/algebra/predicates.rb', line 168

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

#operatorObject



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

def operator; :or end

#predicate_sqlObject



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

def predicate_sql; "OR" end