Sha256: c015eee719bf106752f91e3baca25f341ccc6ca553cde7e769443803d83b6449
Contents?: true
Size: 259 Bytes
Versions: 4
Compression:
Stored size: 259 Bytes
Contents
module Figaro class Env < Hash def self.from(hash) new.replace(hash) end def method_missing(method, *) ENV.fetch(method.to_s.upcase){ super } end def respond_to?(method) ENV.key?(method.to_s.upcase) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
figaro-0.5.3 | lib/figaro/env.rb |
figaro-0.5.2 | lib/figaro/env.rb |
figaro-0.5.1 | lib/figaro/env.rb |
figaro-0.5.0 | lib/figaro/env.rb |