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

instance method Net::FTP::MLSxEntry#file?

file? -> boolRuby 2.3.0 から Ruby 4.1 で削除[permalink][rdoc][edit]

エントリの種類がファイルであれば true を返します。

Net::FTP::MLSxEntry#type == "file" と同じ意味です。