End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Zlib::GzipFile#os_code
os_code
ext/zlib/zlib.c
View on GitHub ↗
static VALUE
rb_gzfile_os_code(VALUE obj)
{
return INT2FIX(get_gzfile(obj)->os_code);
}
Returns OS code number recorded in the gzip file header.