Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/utopia/extensions/date.rb
Instance Method Summary collapse
Instance Method Details
#<=>(other) ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/utopia/extensions/date.rb', line 29 def <=>(other) if Date === other or DateTime === other self.to_datetime <=> other else old_compare(other) end end |
#old_compare ⇒ Object
27 |
# File 'lib/utopia/extensions/date.rb', line 27 alias_method :old_compare, :<=> |