Class: Configue::YamlLoader
- Inherits:
-
Object
- Object
- Configue::YamlLoader
- Defined in:
- lib/configue/yaml_loader.rb
Instance Method Summary collapse
Instance Method Details
#extention ⇒ Object
7 8 9 |
# File 'lib/configue/yaml_loader.rb', line 7 def extention "yml" end |
#load(path) ⇒ Object
11 12 13 14 15 |
# File 'lib/configue/yaml_loader.rb', line 11 def load(path) buf = open(path).read return {} if buf.empty? YAML.load(ERB.new(buf).result) end |