Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

Zlib::GzipWriter#flush

(?::Integer flush) -> self
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.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0