method

size

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

Returns the size of file in bytes.

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