APIdock / Ruby
/
method

size?

ruby latest stable - Class: File ::Stat
size?()
public

Returns the size of stat in bytes.

File .stat("testfile").size  #=> 66
static VALUE
rb_stat_s(VALUE obj)
{
 off_t size = get_stat(obj)->st_size;
 if (size == 0) return Qnil;
 return OFFT2NUM(size);
}

AltStyle によって変換されたページ (->オリジナル) /