Module: ConsoleKit::Output
- Defined in:
- lib/console_kit/output.rb
Overview
Handles Console outputs
Constant Summary collapse
- PREFIX =
'[ConsoleKit]'- TYPES =
{ error: { symbol: '[✗]', color: '1;31' }, success: { symbol: '[✓]', color: '1;32' }, warning: { symbol: '[!]', color: '1;33' }, prompt: { symbol: nil, color: '1;36' }, header: { symbol: nil, color: '1;34' }, trace: { symbol: nil, color: '0;90' }, info: { symbol: nil, color: nil } }.freeze
Class Method Summary collapse
-
.print_backtrace(exception) ⇒ Object
Backtrace prints always with timestamp, no param.
Class Method Details
.print_backtrace(exception) ⇒ Object
Backtrace prints always with timestamp, no param
26 27 28 |
# File 'lib/console_kit/output.rb', line 26 def print_backtrace(exception) exception&.backtrace&.each { |line| print_with(:trace, " #{line}", true) } end |