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



1642
1643
1644
1645
1646
1647
1648
# File 'lib/rake.rb', line 1642

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

#rake_original_time_compareObject



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

alias rake_original_time_compare :<=>