Module: Origin::Extensions::Date::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#evolve(object) ⇒ Time

Evolve the object to an date.

Examples:

Evolve dates.

Date.evolve(Date.new(1990, 1, 1))

Evolve string dates.

Date.evolve("1990-1-1")

Evolve date ranges.

Date.evolve(Date.new(1990, 1, 1)..Date.new(1990, 1, 4))

Since:

  • 1.0.0



50
51
52
# File 'lib/origin/extensions/date.rb', line 50

def evolve(object)
  object.__evolve_date__
end