316
317
318
319
320
321
322
323
324
325
326
|
# File 'lib/utils/irb.rb', line 316
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
|