End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Zlib::ZStream#close
close
ext/zlib/zlib.c
View on GitHub ↗
static VALUE
rb_zstream_end(VALUE obj)
{
zstream_end(get_zstream(obj));
return Qnil;
}
Closes the stream. All operations on the closed stream will raise an exception.