Sha256: da3b47997c879c7ab8aed6e8bc418732d92966f74eccb10d04209558cc5352b6

Contents?: true

Size: 266 Bytes

Versions: 83

Compression:

Stored size: 266 Bytes

Contents

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

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

Version data entries

83 entries across 69 versions & 20 rubygems

Version Path
nutshell-crm-0.0.6.alpha vendor/bundle/gems/rake-0.9.2.2/lib/rake/ext/time.rb
rake-0.9.2.2 lib/rake/ext/time.rb
rake-0.9.3.beta.1 lib/rake/ext/time.rb