Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

Zlib::ZStream#finish

() -> ::String
() { (::String chunk) -> void } -> void
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.3 · 3.2 · 3.1 · 3.0