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 | nil
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.
13 14 15 |
# File 'lib/mongoid/extensions/range.rb', line 13 def __find_args__ to_a end |
#mongoize ⇒ Hash | nil
Turn the object from the ruby type we deal with to a Mongo friendly type.
24 25 26 |
# File 'lib/mongoid/extensions/range.rb', line 24 def mongoize ::Range.mongoize(self) end |
#resizable? ⇒ true
Is this a resizable object.
34 35 36 |
# File 'lib/mongoid/extensions/range.rb', line 34 def resizable? true end |