このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ

Ruby 3.1 リファレンスマニュアル

singleton method File.exists?

exists?(path) -> boolRuby 3.2 で削除[permalink][rdoc][edit]

このメソッドは Ruby 2.1 から deprecated です。File.exist? を使用してください。