Class: Ara::L

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/ara/logger.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initializeL

Returns a new instance of L.



24
25
26
27
# File 'lib/ara/logger.rb', line 24

def initialize
   @mutex = Mutex.new
   @logger = Logger.new STDERR
end

Instance Method Details

#loggerObject



29
30
31
# File 'lib/ara/logger.rb', line 29

def logger
   @mutex.synchronize { @logger }
end

#logger=(l) ⇒ Object



33
34
35
# File 'lib/ara/logger.rb', line 33

def logger=(l)
   @mutex.synchronize { @logger=l }
end