Sha256: 5d011f4be6ca7833e65d6f8cedea511b8f17fa8467cd5f5002ee9da4b3f61f12
Contents?: true
Size: 411 Bytes
Versions: 9
Compression:
Stored size: 411 Bytes
Contents
module Rasti class App class Settings class << self def load(environment) load_file File.join(Dir.pwd, "#{environment}.yml") end def load_file(filename) Hash::Accessible.new(evaluate(File.read(filename))).deep_freeze end private def evaluate(yml) YAML.load ERB.new(yml).result end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems