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:
parent
a4a682c450
commit
8d83743170
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue