Module: Utopia::Extensions::DateTimeComparison
- Defined in:
- lib/utopia/extensions/date_comparisons.rb
Overview
Provides comparison operator extensions.
Instance Method Summary collapse
Instance Method Details
#<=>(other) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/utopia/extensions/date_comparisons.rb', line 25 def <=>(other) if Time === other self.to_datetime <=> other.to_datetime else super end end |