Module: Console::Output
- Defined in:
- lib/console/output.rb,
lib/console/output/null.rb,
lib/console/output/split.rb,
lib/console/output/default.rb,
lib/console/output/wrapper.rb,
lib/console/output/terminal.rb,
lib/console/output/sensitive.rb,
lib/console/output/serialized.rb
Defined Under Namespace
Modules: Default, Text, XTerm Classes: Null, Sensitive, Serialized, Split, Terminal, Wrapper
Constant Summary collapse
- JSON =
Serialized
Class Method Summary collapse
Class Method Details
.new(output = nil, env = ENV, **options) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/console/output.rb', line 13 def self.new(output = nil, env = ENV, **) if names = env['CONSOLE_OUTPUT'] names = names.split(',').reverse names.inject(output) do |output, name| Output.const_get(name).new(output, **) end else return Output::Default.new(output, **) end end |