method

setgid?

ruby latest stable - Class: File::Stat
setgid?()
public

Returns true if stat has the set-group-id permission bit set, false if it doesn’t or if the operating system doesn’t support this feature.

File.stat("/usr/sbin/lpc").setgid?   #=> true