Sha256: a7778d9460551ed56fb139aac3e8bc4be50df9c9c13214dd0e19f8b3cb9df56c
Contents?: true
Size: 367 Bytes
Versions: 2
Compression:
Stored size: 367 Bytes
Contents
module ParamStore module Adapters class Env def initialize(**_opts); end def fetch(key, *args, **_opts, &block) ENV.fetch(key, *args, &block) end def fetch_all(*keys, **_opts) keys = keys.flatten keys.each_with_object({}) do |key, result| result[key] = ENV[key] end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
param_store-1.0.1 | lib/param_store/adapters/env.rb |
param_store-1.0.0 | lib/param_store/adapters/env.rb |