class Time

  1. lib/rake/ext/time.rb
Parent: time.rb

########################################################################### Extensions to time to allow comparisons with an early time class.

Methods

Public Instance

  1. <=>

External Aliases

rake_original_time_compare -> <=>

Public Instance methods

<=> (other)
[show source]
    # File lib/rake/ext/time.rb, line 6
 6:   def <=>(other)
 7:     if Rake::EarlyTime === other
 8:       - other.<=>(self)
 9:     else
10:       rake_original_time_compare(other)
11:     end
12:   end