This commit is contained in:
1 parent
c8ac4fcae5
commit
4cee170d66
17576 files changed
+895740
-2
No files matched your search
@@ -0,0 +1,22 @@
|
||||
# frozen_string_literal: true
|
||||
module Rake
|
||||
|
||||
# EarlyTime is a fake timestamp that occurs _before_ any other time value.
|
||||
class EarlyTime
|
||||
include Comparable
|
||||
include Singleton
|
||||
|
||||
##
|
||||
# The EarlyTime always comes before +other+!
|
||||
|
||||
def <=>(other)
|
||||
-1
|
||||
end
|
||||
|
||||
def to_s # :nodoc:
|
||||
"<EARLY TIME>"
|
||||
end
|
||||
end
|
||||
|
||||
EARLY = EarlyTime.instance
|
||||
end
|
||||
Reference in new issue
Block a user