lib/console/output/split.rb in console-1.24.0 vs lib/console/output/split.rb in console-1.25.0

- old
+ new

@@ -1,9 +1,9 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2022-2023, by Samuel Williams. +# Copyright, 2022-2024, by Samuel Williams. module Console module Output class Split def self.[](*outputs) @@ -16,12 +16,12 @@ def verbose!(value = true) @outputs.each{|output| output.verbose!(value)} end - def call(level, subject = nil, *arguments, **options, &block) + def call(...) @outputs.each do |output| - output.call(level, subject, *arguments, **options, &block) + output.call(...) end end end end end