instance method
<=>
Ruby on Rails 3.1.12
Since v3.0.20Signature
<=>(other)
Layers additional behavior on DateTime#<=> so that Time and ActiveSupport::TimeWithZone instances can be compared with a DateTime
Parameters
-
otherreq
Source
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 129
def <=>(other)
super other.to_datetime
end
Defined in activesupport/lib/active_support/core_ext/date_time/calculations.rb line 129
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in DateTime