All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gems.rake-12.3.2.lib.rake.early_time.rb Maven / Gradle / Ivy

The newest version!
# 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:
      ""
    end
  end

  EARLY = EarlyTime.instance
end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy