Module: Origin::Extensions::TimeWithZone::ClassMethods

Defined in:
lib/origin/extensions/time_with_zone.rb

Instance Method Summary collapse

Instance Method Details

#evolve(object) ⇒ Time

Evolve the object to an date.

Examples:

Evolve dates.

Evolve string dates.

Evolve date ranges.

Parameters:

  • object (Object)

    The object to evolve.

Returns:

  • (Time)

    The evolved date time.

Since:

  • 1.0.0



35
36
37
# File 'lib/origin/extensions/time_with_zone.rb', line 35

def evolve(object)
  object.__evolve_time__
end