27 28 29 30 31 32 33 34 35
# File 'lib/console/output/default.rb', line 27 def self.new(output, **options) output ||= $stderr if output.tty? XTerm.new(output, **options) else JSON.new(output, **options) end end