12 13 14 15 16 17 18 19 20
# File 'lib/console/output/default.rb', line 12 def self.new(output, **options) output ||= $stderr if output.tty? XTerm.new(output, **options) else JSON.new(output, **options) end end