mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-04-07 11:05:47 +00:00
15 lines
No EOL
230 B
Ruby
15 lines
No EOL
230 B
Ruby
module GrapeLogging
|
|
class MultiIO
|
|
def initialize(*targets)
|
|
@targets = targets
|
|
end
|
|
|
|
def write(*args)
|
|
@targets.each {|t| t.write(*args)}
|
|
end
|
|
|
|
def close
|
|
@targets.each(&:close)
|
|
end
|
|
end
|
|
end |