Ruby 1.9.3 Reference Manual > All Libraries > Builtin Library > module FileTest > exist?
exist?(file) -> bool
ファイルが存在する時に真を返します。そうでない場合、あるいはシステムコールに失敗した場合などには false を返します。