Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Zlib::ZStream#finish

finish → String
finish { |chunk| ... } → nil

Finishes the stream and flushes output buffer. If a block is given each chunk is yielded to the block until the input buffer has been flushed to the output buffer.

See also #ended? #finished? #end #flush_next_in also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1