Module: Mongoid::Extensions::Float
- Defined in:
- lib/mongoid/extensions/float.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#__mongoize_time__ ⇒ Time
Convert the float into a time.
-
#numeric? ⇒ true
Is the float a number?.
Instance Method Details
#__mongoize_time__ ⇒ Time
Convert the float into a time.
14 15 16 |
# File 'lib/mongoid/extensions/float.rb', line 14 def __mongoize_time__ ::Time.at(self) end |
#numeric? ⇒ true
Is the float a number?
26 27 28 |
# File 'lib/mongoid/extensions/float.rb', line 26 def numeric? true end |