Sha256: 2597aab1a7c2e16c88023cb7ac60176a0ec3149bfcf5396f3409dea387331e20
Contents?: true
Size: 398 Bytes
Versions: 24
Compression:
Stored size: 398 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)) end private def evaluate(yml) YAML.load ERB.new(yml).result end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems