size?()
public
Returns the size of stat in
bytes.
File.stat("testfile").size
Show source
/*
* call-seq:
* state.size => integer
*
* Returns the size of <i>stat</i> in bytes.
*
* File.stat("testfile").size
*
*/
static VALUE
rb_stat_s(obj)
VALUE obj;
{
off_t size = get_stat(obj)->st_size;
if (size == 0) return Qnil;
return OFFT2NUM(size);
}