Class: Dir

Inherits:
Object
  • Object
show all
Defined in:
lib/junk/compat.rb

Class Method Summary collapse

Class Method Details

.exists?(path) ⇒ Boolean Also known as: exist?

Returns:

  • (Boolean)


3
4
5
# File 'lib/junk/compat.rb', line 3

def exists? (path)
  File.directory?(path)
end