method

size?

v2_1_10 - Show latest stable - Class: File
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.