multiple arguments to write

Make write methods of IO-like objects accept multiple arguments,
as well as IO#write.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-10-23 14:05:07 +00:00
parent 8bbdbf9e75
commit 30d23ec903
7 changed files with 10 additions and 9 deletions

View file

@ -160,7 +160,7 @@ module EnvUtil
def verbose_warning
class << (stderr = "".dup)
alias write <<
alias write concat
end
stderr, $stderr, verbose, $VERBOSE = $stderr, stderr, $VERBOSE, true
yield stderr