Class: File

Inherits:
Object
  • Object
show all
Defined in:
lib/insights_api/login.rb

Instance Method Summary collapse

Instance Method Details

#each_chunk(chunk_size = 2**16) ⇒ Object



217
218
219
# File 'lib/insights_api/login.rb', line 217

def each_chunk(chunk_size=2**16)
    yield read(chunk_size) until eof?
end