diff options
Diffstat (limited to 'lib/rake/late_time.rb')
-rw-r--r-- | lib/rake/late_time.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/rake/late_time.rb b/lib/rake/late_time.rb new file mode 100644 index 0000000000..d959a7821f --- /dev/null +++ b/lib/rake/late_time.rb @@ -0,0 +1,17 @@ +module Rake + # LateTime is a fake timestamp that occurs _after_ any other time value. + class LateTime + include Comparable + include Singleton + + def <=>(other) + 1 + end + + def to_s + '<LATE TIME>' + end + end + + LATE = LateTime.instance +end |