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