method
compare_with_coercion
v2.2.1 -
Show latest stable
- Class:
ActiveSupport::CoreExtensions::Time::Calculations
compare_with_coercion(other)public
Layers additional behavior on Time#<=> so that DateTime and ActiveSupport::TimeWithZone instances can be chronologically compared with a Time