singleton method File.size?

size?(path) -> Integer | nil[permalink][rdoc][edit]

FileTest.#size? と同じです。

[PARAM] path:
パスを表す文字列か IO オブジェクトを指定します。