Module: Mongoid::Criteria::Queryable::Extensions::NilClass
Relationships & Source Files | |
Defined in: | lib/mongoid/criteria/queryable/extensions/nil_class.rb |
Overview
Adds query type-casting behavior to NilClass
.
Instance Method Summary
-
#__add__(object) ⇒ Object
Add this object to nil.
-
#__evolve_date__
Alias for
Mongoid::Criteria::Queryable::Extensions::NilClass#evolve_time
. -
#__evolve_time__ ⇒ nil
(also: #__evolve_date__)
Evolve the nil into a date or time.
-
#__expanded__(object) ⇒ Object
Add this object to nil.
-
#__intersect__(object) ⇒ Object
Add this object to nil.
-
#__override__(object) ⇒ Object
Add this object to nil.
-
#__union__(object) ⇒ Object
Add this object to nil.
Instance Method Details
#__add__(object) ⇒ Object
Add this object to nil.
# File 'lib/mongoid/criteria/queryable/extensions/nil_class.rb', line 20
def __add__(object); object; end
#__evolve_date__
Alias for Mongoid::Criteria::Queryable::Extensions::NilClass#evolve_time
.
# File 'lib/mongoid/criteria/queryable/extensions/nil_class.rb', line 39
alias :__evolve_date__ :__evolve_time__
#__evolve_time__ ⇒ nil
Also known as: #__evolve_date__
Evolve the nil into a date or time.
# File 'lib/mongoid/criteria/queryable/extensions/nil_class.rb', line 38
def __evolve_time__; self; end
#__expanded__(object) ⇒ Object
Add this object to nil.
# File 'lib/mongoid/criteria/queryable/extensions/nil_class.rb', line 30
def (object); object; end
#__intersect__(object) ⇒ Object
Add this object to nil.
# File 'lib/mongoid/criteria/queryable/extensions/nil_class.rb', line 49
def __intersect__(object); object; end
#__override__(object) ⇒ Object
Add this object to nil.
# File 'lib/mongoid/criteria/queryable/extensions/nil_class.rb', line 59
def __override__(object); object; end
#__union__(object) ⇒ Object
Add this object to nil.
# File 'lib/mongoid/criteria/queryable/extensions/nil_class.rb', line 69
def __union__(object); object; end