Sha256: f931005f07b1feb847932c2bb98d8d2c80f1a621a0ebad03f9bd125196acf00f
Contents?: true
Size: 589 Bytes
Versions: 5
Compression:
Stored size: 589 Bytes
Contents
# frozen_string_literal: true # Released under the MIT License. # Copyright, 2021-2024, by Samuel Williams. require_relative 'output/default' require_relative 'output/serialized' require_relative 'output/terminal' require_relative 'output/null' module Console module Output def self.new(output = nil, env = ENV, **options) if names = env['CONSOLE_OUTPUT'] names = names.split(',').reverse names.inject(output) do |output, name| Output.const_get(name).new(output, **options) end else return Output::Default.new(output, **options) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
console-1.27.0 | lib/console/output.rb |
console-1.26.0 | lib/console/output.rb |
console-1.25.2 | lib/console/output.rb |
console-1.25.1 | lib/console/output.rb |
console-1.25.0 | lib/console/output.rb |