Files
news.gitea.happylizard.me/bin/gems/console-1.29.3/lib/console/output/split.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

29 lines
464 B
Ruby

# frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2022-2024, by Samuel Williams.
module Console
module Output
class Split
def self.[](*outputs)
self.new(outputs)
end
def initialize(outputs)
@outputs = outputs
end
def verbose!(value = true)
@outputs.each{|output| output.verbose!(value)}
end
def call(...)
@outputs.each do |output|
output.call(...)
end
end
end
end
end