Class: Q

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



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

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

#|(other) ⇒ Object



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

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

#~Object Also known as: !



38
39
40
# File 'lib/dolzenko/django_q_object.rb', line 38

def ~
  NotQ.new(self)
end