From: "marcandre (Marc-Andre Lafortune)" Date: 2012-05-07T10:20:58+09:00 Subject: [ruby-core:44918] [ruby-trunk - Bug #6408] DelegateClass#eql? and <=> don't work as expected Issue #6408 has been updated by marcandre (Marc-Andre Lafortune). Hi, jeremyevans (Jeremy Evans) wrote: > Changing this behavior would likely break existing code. So if this to > be considered, it should probably not change until 3.0 (unless matz > makes an exception for this case). I had misunderstood that the goal was to make equality symmetric. In any case, you're right, I don't think it should be considered. ---------------------------------------- Bug #6408: DelegateClass#eql? and <=> don't work as expected https://bugs.ruby-lang.org/issues/6408#change-26503 Author: tenderlovemaking (Aaron Patterson) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 2.0.0dev (2012-05-06 trunk 35548) [x86_64-darwin11.3.0] It seems these two methods aren't delegating to the delegate object when compared against itself. I've attached a patch with tests and a fix. It seems nobody is the maintainer for delegate.rb (according to the wiki), so if nobody objects, I will apply this patch. -- http://bugs.ruby-lang.org/