Class: File

Inherits:
Object show all
Defined in:
lib/edango/di/helpers.rb

Class Method Summary collapse

Class Method Details

.prepare_directory(path) ⇒ Object



28
29
30
31
32
33
34
# File 'lib/edango/di/helpers.rb', line 28

def self.prepare_directory(path)
  path = File.expand_path(path)

  Dir.mkdir(path) unless File.directory?(path) rescue nil

  path
end