Method: Mongrel::Configurator#load_yaml
- Defined in:
- lib/mongrel/configurator.rb
#load_yaml(file, default = {}) ⇒ Object
Easy way to load a YAML file and apply default settings.
236 237 238 |
# File 'lib/mongrel/configurator.rb', line 236 def load_yaml(file, default={}) default.merge(YAML.load_file(file)) end |