Class: Lafcadio::Query::Not
- Defined in:
- lib/lafcadio/query.rb
Overview
:nodoc:
Instance Method Summary collapse
- #dobj_satisfies?(obj) ⇒ Boolean
- #domain_class ⇒ Object
-
#initialize(unCondition) ⇒ Not
constructor
A new instance of Not.
- #to_sql ⇒ Object
Methods inherited from Condition
#&, #db_field_name, #eql?, #field, #implies?, #not, #one_pk_id?, #primary_key_field?, #query, search_term_type, #to_condition, #|
Constructor Details
#initialize(unCondition) ⇒ Not
Returns a new instance of Not.
705 706 707 |
# File 'lib/lafcadio/query.rb', line 705 def initialize(unCondition) @unCondition = unCondition end |
Instance Method Details
#dobj_satisfies?(obj) ⇒ Boolean
709 710 711 |
# File 'lib/lafcadio/query.rb', line 709 def dobj_satisfies?(obj) !@unCondition.dobj_satisfies?(obj) end |
#domain_class ⇒ Object
713 |
# File 'lib/lafcadio/query.rb', line 713 def domain_class; @unCondition.domain_class; end |
#to_sql ⇒ Object
715 716 717 |
# File 'lib/lafcadio/query.rb', line 715 def to_sql "!(#{ @unCondition.to_sql })" end |