module Mongoid::Extensions::NilClass
Public Instance Methods
__setter__()
click to toggle source
Try to form a setter from this object.
@example Try to form a setter.
object.__setter__
@return [ nil ] Always nil.
@since 3.1.0
# File lib/mongoid/extensions/nil_class.rb, line 16 def __setter__ self end
collectionize()
click to toggle source
Get the name of a nil collection.
@example Get the nil name.
nil.collectionize
@return [ String
] A blank string.
@since 1.0.0
# File lib/mongoid/extensions/nil_class.rb, line 28 def collectionize to_s.collectionize end