Class: Reflection::Support::Home
- Inherits:
- Object
- Defined in:
- lib/reflection/support/home.rb
Method Summary
Method Details
- (Object) create
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 |
- (Object) path
5 6 7 |
# File 'lib/reflection/support/home.rb', line 5 def path @path ||= File.(File.join(ENV['HOME'], '.reflection')) end |