method

empty?

ruby latest stable - Class: FileTest
empty?(p1)
public

Returns true if the named file exists and has a zero size.

file_name can be an IO object.