Class: PostRunner::RuntimeConfig
- Inherits:
-
Object
- Object
- PostRunner::RuntimeConfig
- Defined in:
- lib/postrunner/RuntimeConfig.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize ⇒ RuntimeConfig
constructor
A new instance of RuntimeConfig.
Constructor Details
#initialize ⇒ RuntimeConfig
Returns a new instance of RuntimeConfig.
5 6 7 8 9 |
# File 'lib/postrunner/RuntimeConfig.rb', line 5 def initialize @settings = {} @settings['data_dir'] = File.join(ENV['HOME'], '.postrunner') @settings['fit_dir'] = File.join(@settings['data_dir'], 'fit') end |
Instance Method Details
#[](key) ⇒ Object
11 12 13 |
# File 'lib/postrunner/RuntimeConfig.rb', line 11 def [](key) @settings[key] end |