Class: Reflection::Support::Home

Inherits:
Object
  • Object
show all
Defined in:
lib/reflection/support/home.rb

Instance Method Summary collapse

Instance Method Details

#createObject



9
10
11
12
13
# File 'lib/reflection/support/home.rb', line 9

def create
  unless File.exist?(self.path)
    Dir.mkdir(self.path)
  end
end

#pathObject



5
6
7
# File 'lib/reflection/support/home.rb', line 5

def path
  @path ||= File.expand_path(File.join(ENV['HOME'], '.reflection'))
end