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