module Mongoid::Criteria::Queryable::Extensions::Numeric
def __evolve_date__
-
(Time)- The time representation at UTC midnight.
Other tags:
- Example: Evolve to a date. -
def __evolve_date__ time = ::Time.at(self).utc ::Time.utc(time.year, time.month, time.day, 0, 0, 0, 0) end
def __evolve_time__
-
(Time)- The time representation.
Other tags:
- Example: Evolve to a time. -
def __evolve_time__ ::Time.at(self).utc end
def to_direction; self; end
-
(Integer)- self.
Other tags:
- Example: Get the integer as a sort direction. -
def to_direction; self; end