Class: Dir

Inherits:
Object show all
Defined in:
lib/ruuuby/class/io/dir.rb

Overview

add various aliases/functions to existing class Dir, (aliased globally by Kernel‘s function 🗄️)

Constant Summary collapse

PATHS_TO_NORMALIZE =
%w(. .. .DS_Store).

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.∃?(path) ⇒ Boolean

Returns true, if provided path exists and is a directory.

Parameters:

  • path (String)

    (to a directory)

Returns:

  • (Boolean)

    true, if provided path exists and is a directory



15
16
17
18
# File 'lib/ruuuby/class/io/dir.rb', line 15

def self.

Instance Method Details

#η̂_pathsArray

Returns:



24
# File 'lib/ruuuby/class/io/dir.rb', line 24

def 

#∅?Boolean

Returns true, if this directory does not exist or has zero contents.

Returns:

  • (Boolean)

    true, if this directory does not exist or has zero contents



9
# File 'lib/ruuuby/class/io/dir.rb', line 9

def