1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
naruse 2014-10-07 22:48:06 +00:00
parent 7fcf57412a
commit 6041af45a3
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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
#