Class: Rasti::App::Settings
- Inherits:
-
Object
- Object
- Rasti::App::Settings
- Defined in:
- lib/rasti/app/settings.rb
Class Method Summary collapse
Class Method Details
.load(environment, options = {}) ⇒ Object
6 7 8 |
# File 'lib/rasti/app/settings.rb', line 6 def load(environment, ={}) load_file File.join(Dir.pwd, "#{environment}.yml"), end |
.load_file(filename, options = {}) ⇒ Object
10 11 12 |
# File 'lib/rasti/app/settings.rb', line 10 def load_file(filename, ={}) Hash::Accessible.new(evaluate(File.read(filename), )).deep_freeze end |