Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/rake/ext/time.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object


6
7
8
9
10
11
12
# File 'lib/rake/ext/time.rb', line 6

def <=>(other)
  if Rake::EarlyTime === other
    - other.<=>(self)
  else
    rake_original_time_compare(other)
  end
end

#rake_original_time_compareObject


5
# File 'lib/rake/ext/time.rb', line 5

alias rake_original_time_compare :<=>