Class: Arel::Predicates::Or
- Inherits:
-
CompoundPredicate
- Object
- Predicate
- Unary
- Binary
- CompoundPredicate
- Arel::Predicates::Or
- Defined in:
- lib/arel/algebra/predicates.rb
Instance Attribute Summary
Attributes inherited from Binary
Attributes inherited from Unary
Instance Method Summary collapse
Methods inherited from CompoundPredicate
Methods inherited from Binary
#==, #bind, #eval, #initialize, #to_sql
Methods inherited from Unary
#==, #bind, #eval, #initialize, #to_sql
Methods inherited from Predicate
Constructor Details
This class inherits a constructor from Arel::Predicates::Binary
Instance Method Details
#complement ⇒ Object
168 169 170 |
# File 'lib/arel/algebra/predicates.rb', line 168 def complement And.new(operand1.complement, operand2.complement) end |
#operator ⇒ Object
172 |
# File 'lib/arel/algebra/predicates.rb', line 172 def operator; :or end |
#predicate_sql ⇒ Object
174 |
# File 'lib/arel/algebra/predicates.rb', line 174 def predicate_sql; "OR" end |