Method: File::Stat#size

Defined in:
file.c

#sizeInteger

Returns the size of stat in bytes.

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

Returns:



836
837
838
839
840
# File 'file.c', line 836

static VALUE
rb_stat_size(VALUE self)
{
    return OFFT2NUM(get_stat(self)->st_size);
}