このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ
file?(path) -> bool
FileTest.#file? と同じです。
path