330
331
332
333
334
335
336
337
338
339
340
|
# File 'lib/utils/irb.rb', line 330
def irb_read(filename, chunk_size = 8_192)
if block_given?
File.open(filename) do |file|
until file.eof?
yield file.read(chunk_size)
end
end
else
IO.read filename
end
end
|