Module Origin::Extensions::Range
In: lib/origin/extensions/range.rb

This module contains additional range behaviour.

Methods

Classes and Modules

Module Origin::Extensions::Range::ClassMethods

Public Instance methods

Get the range as an array.

@example Get the range as an array.

  1...3.__array__

@return [ Array ] The range as an array.

@since 1.0.0

Convert the range to a min/max mongo friendly query for dates.

@example Evolve the range.

  (11231312..213123131).__evolve_date__

@return [ Hash ] The min/max range query with times at midnight.

@since 1.0.0

Convert the range to a min/max mongo friendly query for times.

@example Evolve the range.

  (11231312..213123131).__evolve_date__

@return [ Hash ] The min/max range query with times.

@since 1.0.0

[Validate]