Class: BinaryQ

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



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

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

Instance Attribute Details

#op1Object

Returns the value of attribute op1.



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

def op1
  @op1
end

#op2Object

Returns the value of attribute op2.



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

def op2
  @op2
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/dolzenko/django_q_object.rb', line 52

def empty?
  false
end