Class: Q

Inherits:
Object
  • Object
show all
Defined in:
lib/dolzenko/django_q_object.rb

Direct Known Subclasses

BinaryQ, UnaryQ

Instance Method Summary collapse

Instance Method Details

#&(other) ⇒ Object



31
32
33
# File 'lib/dolzenko/django_q_object.rb', line 31

def &(other)
  AndQ.new(self, other)
end

#|(other) ⇒ Object



27
28
29
# File 'lib/dolzenko/django_q_object.rb', line 27

def |(other)
  OrQ.new(self, other)
end

#~Object Also known as: !



35
36
37
# File 'lib/dolzenko/django_q_object.rb', line 35

def ~
  NotQ.new(self)
end