zero?()
public
Returns true if stat is a zero-length file; false otherwise.
File.stat("testfile").zero?
Show source
/*
* call-seq:
* stat.zero? => true or false
*
* Returns <code>true</code> if <i>stat</i> is a zero-length file;
* <code>false</code> otherwise.
*
* File.stat("testfile").zero?
*
*/
static VALUE
rb_stat_z(obj)
VALUE obj;
{
if (get_stat(obj)->st_size == 0) return Qtrue;
return Qfalse;
}