Class: Arel::Predicates::Predicate

Inherits:
Object
  • Object
show all
Defined in:
lib/arel/algebra/predicates.rb

Direct Known Subclasses

Binary, Polyadic, Unary

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

#complementObject



12
13
14
# File 'lib/arel/algebra/predicates.rb', line 12

def complement
  Not.new(self)
end

#notObject



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