Module: Console::Output::Default
- Defined in:
- lib/console/output/default.rb
Class Method Summary collapse
Class Method Details
.new(output, **options) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/console/output/default.rb', line 12 def self.new(output, **) output ||= $stderr if output.tty? Terminal.new(output, **) else Serialized.new(output, **) end end |