public Method

Stat.dev

stat.dev     fixnum

Returns an integer representing the device on which stat resides.

File.stat("testfile").dev   #=> 774

Source Code

/*
*  call-seq:
*     stat.dev    => fixnum
*  
*  Returns an integer representing the device on which <i>stat</i>
*  resides.
*     
*     File.stat("testfile").dev   #=> 774
*/

static VALUE
rb_stat_dev(self)
   VALUE self;
{
   return INT2NUM(get_stat(self)->st_dev);
}
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.