Class: BinaryQ

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

Direct Known Subclasses

AndQ, OrQ

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Q

#&, #|, #~

Constructor Details

#initialize(op1, op2) ⇒ BinaryQ

Returns a new instance of BinaryQ.



45
46
47
# File 'lib/dolzenko/django_q_object.rb', line 45

def initialize(op1, op2)
  self.op1, self.op2 = op1, op2
end

Instance Attribute Details

#op1Object

Returns the value of attribute op1.



43
44
45
# File 'lib/dolzenko/django_q_object.rb', line 43

def op1
  @op1
end

#op2Object

Returns the value of attribute op2.



43
44
45
# File 'lib/dolzenko/django_q_object.rb', line 43

def op2
  @op2
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


49
50
51
# File 'lib/dolzenko/django_q_object.rb', line 49

def empty?
  false
end