Class: Dir

Inherits:
Object
  • Object
show all
Defined in:
lib/bashly/polyfills/hash.rb

Class Method Summary collapse

Class Method Details

.empty?(path_name) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/bashly/polyfills/hash.rb', line 6

def self.empty?(path_name)
  exist?(path_name) && (entries(path_name) - ['.', '..']).empty?
end