method

size

v2_2_9 - Show latest stable - Class: File
size()
public

Returns the size of file in bytes.

File.new("testfile").size   #=> 66