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



1622
1623
1624
1625
1626
1627
1628
# File 'lib/rake.rb', line 1622

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

#rake_original_time_compareObject



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

alias rake_original_time_compare :<=>