Class: MultiIO
Overview
Ripped straight from SO. This allows us to log to multiple targets simultaneously.
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(*targets) ⇒ MultiIO
constructor
A new instance of MultiIO.
- #write(*args) ⇒ Object
Constructor Details
#initialize(*targets) ⇒ MultiIO
Returns a new instance of MultiIO.
3 4 5 |
# File 'lib/logger/multi_io.rb', line 3 def initialize(*targets) @targets = targets end |