Class: IO
Class Method Summary collapse
-
.copy_stream(input, output) ⇒ Object
IO.copy_stream backport.
Class Method Details
.copy_stream(input, output) ⇒ Object
IO.copy_stream backport
160 161 162 163 164 |
# File 'lib/epitools/core_ext/misc.rb', line 160 def self.copy_stream(input, output) while chunk = input.read(8192) output.write(chunk) end end |