Skip to content
instance method

Zlib::Deflate#flush

(?::Integer flush) -> ::String
(?::Integer flush) { (::String chunk) -> nil } -> nil
flush(flush = Zlib::SYNC_FLUSH) → String
flush(flush = Zlib::SYNC_FLUSH) { |chunk| ... } → nil

This method is equivalent to deflate('', flush). This method is just provided to improve the readability of your Ruby program. If a block is given chunks of deflate output are yielded to the block until the buffer is flushed.

See Zlib::Deflate#deflate for detail on the flush constants NO_FLUSH, SYNC_FLUSH, FULL_FLUSH and FINISH.

See also #deflate #initialize_copy #<< #params also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0