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

* lib/gserver.rb: remove redundant use of to_s in interpolation.

* lib/logger.rb: ditto.
* lib/optparse.rb: ditto.
* lib/rbconfig/obsolete.rb: ditto.
* lib/resolv.rb: ditto.
* lib/webrick/httpresponse.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2014-06-24 08:48:46 +00:00
parent 4c58cdc9a1
commit 4f7449beba
7 changed files with 24 additions and 15 deletions

View file

@ -4,7 +4,7 @@ module ::RbConfig
class << Obsolete
def _warn_
loc, = caller_locations(2, 1)
loc = "#{loc.to_s}: " if loc
loc = "#{loc}: " if loc
warn "#{loc}Use RbConfig instead of obsolete and deprecated Config."
self
end