Class: Ara::L

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

Overview

:nodoc:

Instance Method Summary (collapse)

Constructor Details

- (L) initialize

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

- (Object) logger



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

def logger
   @mutex.synchronize { @logger }
end

- (Object) logger=(l)



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

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