summaryrefslogtreecommitdiff
path: root/lib/rake/early_time.rb
blob: 8c0e7d333987ccfb462b674f4e5373da5436575e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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