Get the range as arguments for a find.
@example Get the range as find args.
range.__find_args__
@return [ Array ] The range as an array.
@since 3.0.0
# File lib/mongoid/extensions/range.rb, line 13 def __find_args__ to_a end
Turn the object from the ruby type we deal with to a Mongo friendly type.
@example Mongoize the object.
range.mongoize
@return [ Hash ] The object mongoized.
@since 3.0.0
# File lib/mongoid/extensions/range.rb, line 26 def mongoize ::Range.mongoize(self) end
Is this a resizable object.
@example Is this resizable?
range.resizable?
@return [ true ] True.
@since 3.0.0
# File lib/mongoid/extensions/range.rb, line 38 def resizable? true end