From: Run Paint Run Run Date: 2009-09-05T01:37:13+09:00 Subject: [ruby-core:25365] [Bug #2047] Time#<=> Raises NoMethodError on Incomparable Argument Bug #2047: Time#<=> Raises NoMethodError on Incomparable Argument http://redmine.ruby-lang.org/issues/show/2047 Author: Run Paint Run Run Status: Open, Priority: Normal Category: core ruby -v: ruby 1.9.2dev (2009-09-03 trunk 24741) [i686-linux] $ cat /tmp/time-spaceship.rb p Time.now <=> Object.new $ ruby8 -v /tmp/time-spaceship.rb ruby 1.8.8dev (2009-09-04) [i686-linux] nil $ ruby -v /tmp/time-spaceship.rb ruby 1.9.2dev (2009-09-03 trunk 24741) [i686-linux] /tmp/time-spaceship.rb:1:in `<=>': undefined method `<=>' for # (NoMethodError) from /tmp/time-spaceship.rb:1:in `
' This is a specific example of the wider issue marcandre eloquently explained in http://redmine.ruby-lang.org/issues/show/1697 . ---------------------------------------- http://redmine.ruby-lang.org