Module: Mongoid::Criteria::Queryable::Extensions::Time::ClassMethods

Defined in:
build/mongoid-7.3/lib/mongoid/criteria/queryable/extensions/time.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



51
52
53
# File 'build/mongoid-7.3/lib/mongoid/criteria/queryable/extensions/time.rb', line 51

def evolve(object)
  object.__evolve_time__
end