Class: Date
- Inherits:
-
Object
- Object
- Date
- Defined in:
- lib/utopia/extensions/date.rb
Instance Method Summary collapse
Instance Method Details
#<=>(other) ⇒ Object
41 42 43 44 45 46 47 |
# File 'lib/utopia/extensions/date.rb', line 41 def <=>(other) if Time === other self.to_datetime <=> other.to_datetime else old_compare(other) end end |
#old_compare ⇒ Object
39 |
# File 'lib/utopia/extensions/date.rb', line 39 alias_method :old_compare, :<=> |