Class: NotQ

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

Instance Attribute Summary

Attributes inherited from UnaryQ

#op1

Instance Method Summary collapse

Methods inherited from UnaryQ

#empty?, #initialize

Methods inherited from Q

#&, #|, #~

Constructor Details

This class inherits a constructor from UnaryQ

Instance Method Details

#to_q_sql(klass) ⇒ Object



80
81
82
# File 'lib/dolzenko/django_q_object.rb', line 80

def to_q_sql(klass)
  "(NOT (#{ op1.to_q_sql(klass) }))"
end