module Mongoid::Extensions::Float

def __mongoize_time__

Other tags:
    Since: - 3.0.0

Returns:
  • (Time) - The float as a time.

Other tags:
    Example: Convert the float into a time. -
def __mongoize_time__
  ::Time.at(self)
end

def numeric?

Other tags:
    Since: - 3.0.0

Returns:
  • (true) - Always true.

Other tags:
    Example: Is the object a number?. -
def numeric?
  true
end