class AvoDeploy::MultiIO
Public Class Methods
new(*targets)
click to toggle source
Initializes the MultiIO
with various target
@param targets [Array] targets to handle
# File lib/avodeploy/multi_io.rb, line 24 def initialize(*targets) @targets = targets end
Public Instance Methods
close()
click to toggle source
Closes the targets
# File lib/avodeploy/multi_io.rb, line 36 def close @targets.each(&:close) end
write(*args)
click to toggle source
Writes to all targets
@param args [mixed] arguments
# File lib/avodeploy/multi_io.rb, line 31 def write(*args) @targets.each { |t| t.write(*args) } end