Module: Mongoid::Criteria::Queryable::Extensions::NilClass
- Defined in:
- lib/mongoid/criteria/queryable/extensions/nil_class.rb
Overview
This module contains additional nil behaviour.
Instance Method Summary collapse
-
#__add__(object) ⇒ Object
Add this object to nil.
-
#__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.
20 |
# File 'lib/mongoid/criteria/queryable/extensions/nil_class.rb', line 20 def __add__(object); object; end |
#__evolve_time__ ⇒ nil Also known as: __evolve_date__
Evolve the nil into a date or time.
42 |
# File 'lib/mongoid/criteria/queryable/extensions/nil_class.rb', line 42 def __evolve_time__; self; end |
#__expanded__(object) ⇒ Object
Add this object to nil.
32 |
# File 'lib/mongoid/criteria/queryable/extensions/nil_class.rb', line 32 def (object); object; end |
#__intersect__(object) ⇒ Object
Add this object to nil.
55 |
# File 'lib/mongoid/criteria/queryable/extensions/nil_class.rb', line 55 def __intersect__(object); object; end |
#__override__(object) ⇒ Object
Add this object to nil.
67 |
# File 'lib/mongoid/criteria/queryable/extensions/nil_class.rb', line 67 def __override__(object); object; end |
#__union__(object) ⇒ Object
Add this object to nil.
79 |
# File 'lib/mongoid/criteria/queryable/extensions/nil_class.rb', line 79 def __union__(object); object; end |