ruby-changes:14339
From: marcandre <ko1@a...>
Date: Thu, 24 Dec 2009 16:41:24 +0900 (JST)
Subject: [ruby-changes:14339] Ruby:r26169 (ruby_1_8): * lib/uri/generic.rb (eql?): Check the class of the compared object.
marcandre 2009-12-24 16:35:01 +0900 (Thu, 24 Dec 2009) New Revision: 26169 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26169 Log: * lib/uri/generic.rb (eql?): Check the class of the compared object. Based on a patch by Peter McLain [ruby-core:27019] Modified files: branches/ruby_1_8/lib/uri/generic.rb Index: ruby_1_8/lib/uri/generic.rb =================================================================== --- ruby_1_8/lib/uri/generic.rb (revision 26168) +++ ruby_1_8/lib/uri/generic.rb (revision 26169) @@ -1054,6 +1054,7 @@ end def eql?(oth) + self.class == oth.class && self.component_ary.eql?(oth.component_ary) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/