Class: Fcom::ConfigFileOptions
- Inherits:
-
Object
- Object
- Fcom::ConfigFileOptions
- Includes:
- MemoWise
- Defined in:
- lib/fcom/config_file_options.rb
Instance Method Summary collapse
-
#initialize ⇒ ConfigFileOptions
constructor
A new instance of ConfigFileOptions.
- #repo ⇒ Object
Constructor Details
#initialize ⇒ ConfigFileOptions
Returns a new instance of ConfigFileOptions.
6 7 8 9 10 11 12 13 |
# File 'lib/fcom/config_file_options.rb', line 6 def initialize @options = if config_file_exists? YAML.load_file(config_file_path) else {} end end |
Instance Method Details
#repo ⇒ Object
15 16 17 |
# File 'lib/fcom/config_file_options.rb', line 15 def repo @options['repo'] end |