method

setuid?

ruby latest stable - Class: FileTest
setuid?(p1)
public

Returns true if the named file has the setuid bit set.