Sha256: 557ea38cc52e9cf45474daac9c4fab766ae269e7ae97056a7657e3bb44453cc5
Contents?: true
Size: 448 Bytes
Versions: 2
Compression:
Stored size: 448 Bytes
Contents
# frozen_string_literal: true # Released under the MIT License. # Copyright, 2021-2022, by Samuel Williams. require_relative '../serialized/logger' require_relative 'encoder' module Console module Output module JSON def self.new(output, **options) # The output encoder can prevent encoding issues (e.g. invalid UTF-8): Output::Encoder.new( Serialized::Logger.new(output, format: ::JSON, **options) ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
console-1.21.0 | lib/console/output/json.rb |
console-1.20.0 | lib/console/output/json.rb |