Class: IO

Inherits:
Object show all
Defined in:
lib/epitools/core_ext/misc.rb

Class Method Summary collapse

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