class Configue::YamlLoader
Public Instance Methods
extention()
click to toggle source
# File lib/configue/yaml_loader.rb, line 7 def extention "yml" end
load(path)
click to toggle source
# 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