Module Origin::Extensions::Numeric
In: lib/origin/extensions/numeric.rb

This module contains additional numeric behaviour.

Methods

Classes and Modules

Module Origin::Extensions::Numeric::ClassMethods

Public Instance methods

Evolve the numeric value into a mongo friendly date, aka UTC time at midnight.

@example Evolve to a date.

  125214512412.1123.__evolve_date__

@return [ Time ] The time representation at UTC midnight.

@since 1.0.0

Evolve the numeric value into a mongo friendly time.

@example Evolve to a time.

  125214512412.1123.__evolve_time__

@return [ Time ] The time representation.

@since 1.0.0

Get the integer as a sort direction.

@example Get the integer as a sort direction.

  1.to_direction

@return [ Integer ] self.

@since 1.0.0

[Validate]