class Rewindable
A body which buffers all it's contents as it is #read
.
Definitions
def buffered
A rewindable body wraps some other body. Convert it to a buffered body. The buffered body will share the same chunks as the rewindable body.
Signature
-
returns
Buffered
the buffered body.
Implementation
def buffered
Buffered.new(@chunks)
end