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#comment
comment
ext/zlib/zlib.c
View on GitHub ↗
static VALUE
rb_gzfile_comment(VALUE obj)
{
VALUE str = get_gzfile(obj)->comment;
if (!NIL_P(str)) {
str = rb_str_dup(str);
}
return str;
}
Returns comments recorded in the gzip file header, or nil if the comments is not present.