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