Class: Arel::Predicates::Predicate
- Inherits:
-
Object
- Object
- Arel::Predicates::Predicate
- Defined in:
- lib/arel/algebra/predicates.rb
Instance Method Summary collapse
Instance Method Details
#and(other_predicate) ⇒ Object
8 9 10 |
# File 'lib/arel/algebra/predicates.rb', line 8 def and(other_predicate) And.new(self, other_predicate) end |
#complement ⇒ Object
12 13 14 |
# File 'lib/arel/algebra/predicates.rb', line 12 def complement Not.new(self) end |
#not ⇒ Object
16 17 18 |
# File 'lib/arel/algebra/predicates.rb', line 16 def not self.complement end |
#or(other_predicate) ⇒ Object
4 5 6 |
# File 'lib/arel/algebra/predicates.rb', line 4 def or(other_predicate) Or.new(self, other_predicate) end |