Class: Capwatch::Fund::Config::Local
- Inherits:
-
Object
- Object
- Capwatch::Fund::Config::Local
- Defined in:
- lib/capwatch/fund/config.rb
Constant Summary collapse
- FILE_NAME =
"~/.capwatch"
Instance Method Summary collapse
Instance Method Details
#create_demo_file! ⇒ Object
78 79 80 |
# File 'lib/capwatch/fund/config.rb', line 78 def create_demo_file! Demo.new.create_demo_config unless File.exist?(File.((Local::FILE_NAME))) end |
#get_data ⇒ Object
73 74 75 76 |
# File 'lib/capwatch/fund/config.rb', line 73 def get_data create_demo_file! File.open(File.(FILE_NAME)).read end |