Skip to content

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

instance method

Zlib::GzipWriter#flush

flush(flush=nil)

Flushes all the internal buffers of the GzipWriter object. The meaning of flush is same as in Zlib::Deflate#deflate. Zlib::SYNC_FLUSH is used if flush is omitted. It is no use giving flush Zlib::NO_FLUSH.

See also #comment= #mtime= #<< #orig_name= also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0