From: Yui NARUSE Date: 2010-06-30T11:44:03+09:00 Subject: [ruby-core:30964] [Bug #3505] URI.join and Kernel::URI should accept URI objects Issue #3505 has been updated by Yui NARUSE. I agree with this idea, but the patch has a problem; it breaks objects which have to_str. irb(main):001:0> class Foo; def to_str; "foo"; end; end => nil irb(main):002:0> f=Foo.new => # irb(main):003:0> case f; when /foo/; p $&; end "foo" => "foo" irb(main):004:0> case f; when String; p $&; end => nil ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3505 ---------------------------------------- http://redmine.ruby-lang.org