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, **) output ||= $stderr if output.tty? output = Terminal.new(output, **) else output = Serialized.new(output, **) end return output end |