Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
File::Stat#gid
stat.gid → integer
file.c
View on GitHub ↗
static VALUE
rb_stat_gid(VALUE self)
{
return GIDT2NUM(get_stat(self)->st_gid);
}
Returns the numeric group id of the owner of stat.
Example
File.stat("testfile").gid #=> 500