Sha256: 97fb48dec52f1e005b1acb554c26a797b79d1afd134da79777e5ccc94c3fa125
Contents?: true
Size: 437 Bytes
Versions: 1
Compression:
Stored size: 437 Bytes
Contents
require_relative "config/version" require_relative "config/adapters/env_adapter" require_relative "config/adapters/diplomat_adapter" module Blinkist class Config class << self attr_accessor :adapter_type, :logger, :env, :app_name def get(key, default = nil, scope: nil) adapter ||= Adapter.instance_for adapter_type, env, app_name adapter.get(key, scope: scope) || default end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blinkist-config-1.0.0 | lib/blinkist/config.rb |