Ruby 2.6.0 リファレンスマニュアル > ライブラリ一覧 > shellライブラリ > Shellクラス > size

instance method Shell#size

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

FileTest モジュールにある同名のクラスメソッドと同じです.

[PARAM] file:
ファイル名を表す文字列を指定します。

[SEE_ALSO] FileTest.#size FileTest.#size?