Sha256: 92271b1a477cfaff47211d8d74261a0ed5073801d86abef66eee237ff1f53608
Contents?: true
Size: 249 Bytes
Versions: 11
Compression:
Stored size: 249 Bytes
Contents
require 'yaml' require 'erb' class Configuration CONFIG_PATH = 'config.yml.erb'.freeze attr_reader :config def initialize @config = YAML.load(ERB.new(File.read(CONFIG_PATH)).result).freeze end def [](key) config[key] end end
Version data entries
11 entries across 11 versions & 3 rubygems