Module: Ellipses::Support::UI
- Defined in:
- lib/ellipses/support/ui.rb
Class Method Summary collapse
Class Method Details
.abort(string) ⇒ Object
16 17 18 |
# File 'lib/ellipses/support/ui.rb', line 16 def abort(string) Kernel.abort $stderr.tty? ? "#{Color.bold Color.red '✗'} #{string}" : "✗ #{string}" end |
.info(string) ⇒ Object
12 13 14 |
# File 'lib/ellipses/support/ui.rb', line 12 def info(string) Kernel.warn $stderr.tty? ? "#{Color.bold Color.green '✓'} #{Color.dim string}" : "✓ #{string}" end |