Skip to content
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 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0