method

size?

v2_6_3 - Show latest stable - Class: FileTest
size?(p1)
public

Returns nil if file_name doesn’t exist or has zero size, the size of the file otherwise.

file_name can be an IO object.