diff options
| author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-24 07:35:01 +0000 |
|---|---|---|
| committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-24 07:35:01 +0000 |
| commit | a9d5215abb968eff1948ed1b6b8c59c6ebfd252b (patch) | |
| tree | f4d0a7790c4fd5cca22c26ff620f0f22da4fb90b | |
| parent | be4a57a64fa236c65b5c874b2b295ab70957b4cd (diff) | |
* lib/uri/generic.rb (eql?): Check the class of the compared object.
Based on a patch by Peter McLain [ruby-core:27019]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | lib/uri/generic.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index d907e0b4b2..c855d60610 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -1054,6 +1054,7 @@ module URI end def eql?(oth) + self.class == oth.class && self.component_ary.eql?(oth.component_ary) end |
