Sha256: ffd7bde2a9311160fb2c0bb626b1c56e0f9bba23dcfc2b6d4ecd70d574d55656
Contents?: true
Size: 516 Bytes
Versions: 7
Compression:
Stored size: 516 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
7 entries across 7 versions & 1 rubygems