public Method

Stat.size

stat.size     fixnum

Returns the size of stat in bytes.

File.stat("testfile").size   #=> 66

Source Code

/*
*  call-seq:
*     stat.size    => fixnum
*  
*  Returns the size of <i>stat</i> in bytes.
*     
*     File.stat("testfile").size   #=> 66
*/

static VALUE
rb_stat_size(self)
   VALUE self;
{
   return OFFT2NUM(get_stat(self)->st_size);
}
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.