Class: File

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

Instance Method Summary collapse

Instance Method Details

#chunk(chunk_size = 1024) ⇒ Object



44
45
46
# File 'lib/rhc/core_ext.rb', line 44

def chunk(chunk_size=1024)
  yield read(chunk_size) until eof?
end