Method: File::Stat#uid

Defined in:
file.c

#uidInteger

Returns the numeric user id of the owner of stat.

File.stat("testfile").uid   #=> 501

Returns:



735
736
737
738
739
# File 'file.c', line 735

static VALUE
rb_stat_uid(VALUE self)
{
    return UIDT2NUM(get_stat(self)->st_uid);
}