Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/reap/taskutils.rb
Overview
Extensions to time to allow comparisons with an early time class. This was borrowed from Rake. – TODO Ultimately this might be able to be replaced by -Infinity (see Infinity class in development folder). ++
Defined Under Namespace
Classes: Earlier
Constant Summary collapse
- EARLY =
Earlier.instance
Instance Method Summary collapse
Instance Method Details
#<=>(other) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/reap/taskutils.rb', line 32 def <=>(other) if Earlier === other - other.<=>(self) else rake_original_time_compare(other) end end |
#rake_original_time_compare ⇒ Object
30 |
# File 'lib/reap/taskutils.rb', line 30 alias_method :rake_original_time_compare, :<=> |