Sha256: 3b2d38c0444f82f5fc83de26bc6cf058b536608c9ec02ad2e08ecdc1eb1325b7

Contents?: true

Size: 315 Bytes

Versions: 2

Compression:

Stored size: 315 Bytes

Contents

require "thread"
require "forwardable"

module ClimateControl
  class Environment
    extend Forwardable

    def initialize
      @semaphore = Mutex.new
    end

    def_delegators :env, :[]=, :to_hash, :[], :delete
    def_delegator :@semaphore, :synchronize

    private

    def env
      ENV
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/climate_control-0.1.0/lib/climate_control/environment.rb
climate_control-0.1.0 lib/climate_control/environment.rb