Sha256: b679fadf0d6ad729af46e63f295fb505090a6229c66f13e2575c6c21feabf212
Contents?: true
Size: 319 Bytes
Versions: 1
Compression:
Stored size: 319 Bytes
Contents
module Econfig class Memory def initialize @mutex = Mutex.new @options = {} end def has_key?(key) @options.has_key?(key) end def get(key) @options[key] end def set(key, value) @mutex.synchronize do @options[key] = value end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
econfig-2.0.0 | lib/econfig/memory.rb |