grape_logging/lib/grape_logging/multi_io.rb
2015-04-16 09:20:23 +02:00

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