Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > Fileクラス > exists?

singleton method File.exists?

exists?(path) -> bool

このメソッドはobsoleteです。

FileTest.#exist? と同じです。 File.exist?を使って下さい。

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