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

instance method Shell#exist?

exist?(file) -> bool
exists?(file) -> bool

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

[PARAM] file:
ファイル名を表す文字列か IO オブジェクトを指定します。

[SEE_ALSO] FileTest.#exist? FileTest.#exists?

class Shell