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
42 43 44 45 46 47 48 |
# File 'lib/utopia/extensions/date_comparisons.rb', line 42 def <=>(other) if Time === other self.to_datetime <=> other.to_datetime else super end end |