method

directory?

v1_9_3_125 - Show latest stable - Class: File::Stat
directory?()
public

Returns true if the named file is a directory, or a symlink that points at a directory, and false otherwise.

File.directory?(".")