Class: Checkoff::ConfigLoader
- Inherits:
-
Object
- Object
- Checkoff::ConfigLoader
- 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.("~/.#{file}")) .with_indifferent_access end |