public Method

Stat.ino

stat.ino    fixnum

Returns the inode number for stat.

File.stat("testfile").ino   #=> 1083669

Source Code

/*
*  call-seq:
*     stat.ino   => fixnum
*  
*  Returns the inode number for <i>stat</i>.
*     
*     File.stat("testfile").ino   #=> 1083669
*     
*/

static VALUE
rb_stat_ino(self)
   VALUE self;
{
#ifdef HUGE_ST_INO
   return ULL2NUM(get_stat(self)->st_ino);
#else
   return ULONG2NUM(get_stat(self)->st_ino);
#endif
}
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.