Class: Kojak::Printer::Synchronized
- Inherits:
-
Basic
- Object
- Kojak::Printer
- Basic
- Kojak::Printer::Synchronized
- Defined in:
- lib/kojak/printer/synchronized.rb
Overview
Internal: Thread-safe version of Printer::Basic.
Direct Known Subclasses
Constant Summary collapse
- @@lock =
Mutex.new
Instance Method Summary collapse
Methods inherited from Basic
Methods inherited from Kojak::Printer
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 |