Class: Persey::Adapters::Toml

Inherits:
Base
  • Object
show all
Defined in:
lib/persey/adapters/toml.rb

Class Method Summary collapse

Methods inherited from Base

symbolize_keys

Class Method Details

.load(file, env) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/persey/adapters/toml.rb', line 7

def load(file, env)
  begin
    raw_hash = TOML.load_file(file)
    symbolize_keys(raw_hash)
  rescue
    puts "FATAL: Error while process config from file '#{file}'"
  end
end