method

file?

v2_6_3 - Show latest stable - Class: File
file?(p1)
public

Returns true if the named file exists and is a regular file.

file can be an IO object.

If the file argument is a symbolic link, it will resolve the symbolic link and use the file referenced by the link.