Method: Down::ChunkedIO#each_chunk
- Defined in:
- lib/down/chunked_io.rb
#each_chunk ⇒ Object
Yields elements of the underlying enumerator.
46 47 48 49 50 51 52 |
# File 'lib/down/chunked_io.rb', line 46 def each_chunk fail IOError, "closed stream" if closed? return enum_for(__method__) unless block_given? yield retrieve_chunk until chunks_depleted? end |