instance method
File::Stat#size
() -> ::Integer
stat.size → integer
file.c
View on GitHub ↗
static VALUE
rb_stat_size(VALUE self)
{
return OFFT2NUM(get_stat(self)->ST_(size));
}
Returns the size of stat in bytes.
Example
File.stat("testfile").size #=> 66