summaryrefslogtreecommitdiff
path: root/lib/rake/early_time.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rake/early_time.rb')
-rw-r--r--lib/rake/early_time.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/rake/early_time.rb b/lib/rake/early_time.rb
new file mode 100644
index 0000000000..8c0e7d3339
--- /dev/null
+++ b/lib/rake/early_time.rb
@@ -0,0 +1,18 @@
+module Rake
+
+ # EarlyTime is a fake timestamp that occurs _before_ any other time value.
+ class EarlyTime
+ include Comparable
+ include Singleton
+
+ def <=>(other)
+ -1
+ end
+
+ def to_s
+ "<EARLY TIME>"
+ end
+ end
+
+ EARLY = EarlyTime.instance
+end