Sha256: 239568b659c32b43aeae80c5c0996830c68e6c67b0695b0e1db8218292f2712a
Contents?: true
Size: 266 Bytes
Versions: 1
Compression:
Stored size: 266 Bytes
Contents
class EnvKeyStore def initialize(key) @key = "SMS77_TEST_#{key}" @store = ENV[@key] end def get(fallback = nil) @store.nil? ? fallback : @store end def set(val, only_on_nil = false) @store = val unless only_on_nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sms77-0.5.0 | spec/EnvKeyStore.rb |