diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-07 22:48:06 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-07 22:48:06 +0000 |
commit | 6041af45a36fb2f8b0a1c8c89825d1ec88833883 (patch) | |
tree | e4d995f31a83215c5e2193ffbcb7cf8b79160019 | |
parent | 7fcf57412a627eb57ce028f9614b1f5113aec155 (diff) | |
download | ruby-6041af45a36fb2f8b0a1c8c89825d1ec88833883.tar.gz |
* lib/uri/generic.rb (URI#inspect): remove Object id.
URI is considered that it doesn't require id.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/uri/generic.rb | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Wed Oct 8 07:42:39 2014 NARUSE, Yui <naruse@ruby-lang.org> + + * lib/uri/generic.rb (URI#inspect): remove Object id. + URI is considered that it doesn't require id. + Wed Oct 8 05:22:42 2014 Eric Wong <e@80x24.org> * ext/etc/etc.c (etc_systmpdir): set default tmplen correctly diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index 0169934d04..03701aaf63 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -1450,9 +1450,8 @@ module URI end end - @@to_s = Kernel.instance_method(:to_s) def inspect - @@to_s.bind(self).call.sub!(/>\z/) {" URL:#{self}>"} + "#<#{self.class} #{self}>" end # |