method

size

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

Returns the size of file in bytes.

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