Module: Mongoid::Extensions::Range
- Defined in:
- lib/mongoid/extensions/range.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#__find_args__ ⇒ Array
Get the range as arguments for a find.
-
#mongoize ⇒ Hash
Turn the object from the ruby type we deal with to a Mongo friendly type.
-
#resizable? ⇒ true
Is this a resizable object.
Instance Method Details
#__find_args__ ⇒ Array
Get the range as arguments for a find.
14 15 16 |
# File 'lib/mongoid/extensions/range.rb', line 14 def __find_args__ to_a end |
#mongoize ⇒ Hash
Turn the object from the ruby type we deal with to a Mongo friendly type.
27 28 29 |
# File 'lib/mongoid/extensions/range.rb', line 27 def mongoize ::Range.mongoize(self) end |
#resizable? ⇒ true
Is this a resizable object.
39 40 41 |
# File 'lib/mongoid/extensions/range.rb', line 39 def resizable? true end |