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

Use IO.copy_stream

This commit is contained in:
aycabta 2019-05-29 06:53:18 +09:00
parent a4a682c450
commit 8d83743170

View file

@ -272,9 +272,7 @@ module IRB
if matched =~ /\A(?:::)?RubyVM/ and not ENV['RUBY_YES_I_AM_NOT_A_NORMAL_USER']
File.open(File.join(__dir__, 'ruby_logo.aa')) do |f|
RDocRIDriver.page do |io|
f.each_line do |l|
io.write(l)
end
IO.copy_stream(f, io)
end
end
return