Class: Checkoff::ConfigLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/checkoff/config_loader.rb

Overview

Load configuration file

Class Method Summary collapse

Class Method Details

.load(sym) ⇒ Object



10
11
12
13
14
# File 'lib/checkoff/config_loader.rb', line 10

def self.load(sym)
  file = "#{sym}.yml"
  YAML.load_file(File.expand_path("~/.#{file}"))
    .with_indifferent_access
end