Method: Enc::Config#load
- Defined in:
- lib/enc/config.rb
#load ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/enc/config.rb', line 18 def load if @options.empty? @options = YAML.load_file(@config_file).inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} end set_defaults @options end |