diff options
Diffstat (limited to 'ruby_1_9_3/lib/rake/early_time.rb')
-rw-r--r-- | ruby_1_9_3/lib/rake/early_time.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ruby_1_9_3/lib/rake/early_time.rb b/ruby_1_9_3/lib/rake/early_time.rb new file mode 100644 index 0000000000..8c0e7d3339 --- /dev/null +++ b/ruby_1_9_3/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 |