class Split
Split output into multiple outputs.
Definitions
def self.[](*outputs)
Create a new split output.
Signature
-
parameter
outputs
Array(Console::Output)
The outputs to split into.
Implementation
def self.[](*outputs)
self.new(outputs)
end
def initialize(outputs)
Create a new split output.
Signature
-
parameter
outputs
Array(Console::Output)
The outputs to split into.
Implementation
def initialize(outputs)
@outputs = outputs
end
def verbose!(value = true)
Set the verbose flag for all outputs.
Signature
-
parameter
value
Boolean
The new value.
Implementation
def verbose!(value = true)
@outputs.each{|output| output.verbose!(value)}
end
def call(...)
Invoke the outputs. If a block is used, it may be invoked multiple times.
Implementation
def call(...)
@outputs.each do |output|
output.call(...)
end
end