public Method

Stat.uid

stat.uid     fixnum

Returns the numeric user id of the owner of stat.

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

Source Code

/*
*  call-seq:
*     stat.uid    => fixnum
*  
*  Returns the numeric user id of the owner of <i>stat</i>.
*     
*     File.stat("testfile").uid   #=> 501
*     
*/

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

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.