Ruby 1.8.7 Reference Manual > All Libraries > Builtin Library > class File > exist?

singleton method File.exist?

exist?(path) -> bool

FileTest.#exist? と同じです。

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