Class: Fcom::ConfigFileOptions

Inherits:
Object
  • Object
show all
Includes:
MemoWise
Defined in:
lib/fcom/config_file_options.rb

Instance Method Summary collapse

Constructor Details

#initializeConfigFileOptions

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

#repoObject



15
16
17
# File 'lib/fcom/config_file_options.rb', line 15

def repo
  @options['repo']
end