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



1624
1625
1626
1627
1628
1629
1630
# File 'lib/rake.rb', line 1624

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

#rake_original_time_compareObject



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

alias rake_original_time_compare :<=>