Module: Mongoid::Extensions::NilClass
- Defined in:
- lib/mongoid/extensions/nil_class.rb
Overview
Adds type-casting behavior to NilClass.
Instance Method Summary collapse
- #__setter__ ⇒ nil deprecated Deprecated.
-
#collectionize ⇒ String
Get the name of a nil collection.
Instance Method Details
#__setter__ ⇒ nil
Deprecated.
Try to form a setter from this object.
14 15 16 |
# File 'lib/mongoid/extensions/nil_class.rb', line 14 def __setter__ self end |
#collectionize ⇒ String
Get the name of a nil collection.
25 26 27 |
# File 'lib/mongoid/extensions/nil_class.rb', line 25 def collectionize to_s.collectionize end |