Class: Kojak::Printer::Synchronized

Inherits:
Basic show all
Defined in:
lib/kojak/printer/synchronized.rb

Overview

Internal: Thread-safe version of Printer::Basic.

Direct Known Subclasses

Colorized

Constant Summary collapse

@@lock =
Mutex.new

Instance Method Summary collapse

Methods inherited from Basic

#initialize

Methods inherited from Kojak::Printer

#puts

Constructor Details

This class inherits a constructor from Kojak::Printer::Basic

Instance Method Details

#write(s, *args) ⇒ Object



6
7
8
# File 'lib/kojak/printer/synchronized.rb', line 6

def write(s, *args)
  @@lock.synchronize { super }
end