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.
16 17 18 |
# File 'lib/mongoid/extensions/range.rb', line 16 def __find_args__ to_a end |
#mongoize ⇒ Hash
Turn the object from the ruby type we deal with to a Mongo friendly type.
29 30 31 |
# File 'lib/mongoid/extensions/range.rb', line 29 def mongoize ::Range.mongoize(self) end |
#resizable? ⇒ true
Is this a resizable object.
41 42 43 |
# File 'lib/mongoid/extensions/range.rb', line 41 def resizable? true end |