Sha256: 15dbe6ba09b84999da9498450de0e28ef3ce2ac97739c9b63077b7ef622a0e97
Contents?: true
Size: 515 Bytes
Versions: 5
Compression:
Stored size: 515 Bytes
Contents
# encoding: utf-8 module LocalPac @config_semaphore = Mutex.new @logger_semaphore = Mutex.new class << self attr_reader :config_semaphore attr_reader :logger_semaphore attr_accessor :debug_mode def config(local_config = LocalPac::Config.new) config_semaphore.synchronize do @config ||= local_config end end def ui_logger(local_logger = LocalPac::UiLogger.new) logger_semaphore.synchronize do @ui_logger ||= local_logger end end end end
Version data entries
5 entries across 5 versions & 1 rubygems