Skip to content

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

instance method

Zlib::Deflate#params

params(level, strategy)

Changes the parameters of the deflate stream to allow changes between different types of data that require different types of compression. Any unprocessed data is flushed before changing the params.

See Zlib::Deflate.new for a description of level and strategy.

See also #initialize_copy #set_dictionary #flush also in 4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0