Module: Console::Output::Default

Defined in:
lib/console/output/default.rb

Class Method Summary collapse

Class Method Details

.new(output, **options) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/console/output/default.rb', line 13

def self.new(output, **options)
	output ||= $stderr
	
	if output.tty?
		output = Terminal.new(output, **options)
	else
		output = Serialized.new(output, **options)
	end
	
	return output
end