module Mongoid::Extensions::Set
Adds type-casting behavior to Set
class.
Public Instance Methods
mongoize()
click to toggle source
Turn the object from the ruby type we deal with to a Mongo friendly type.
@example Mongoize the object.
set.mongoize
@return [ Array
| nil ] The object mongoized or nil.
# File lib/mongoid/extensions/set.rb, line 16 def mongoize ::Set.mongoize(self) end
resizable?()
click to toggle source
Returns whether the object’s size can be changed.
@example Is the object resizable?
object.resizable?
@return [ true ] true.
# File lib/mongoid/extensions/set.rb, line 26 def resizable? true end