Class: Time

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

Overview

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

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



1191
1192
1193
1194
1195
1196
1197
# File 'lib/rake.rb', line 1191

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

#pre_early_time_compareObject



1190
# File 'lib/rake.rb', line 1190

alias pre_early_time_compare :<=>