method

size

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

Returns the size of file in bytes.

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