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 |
.notice(string) ⇒ Object
8 9 10 |
# File 'lib/ellipses/support/ui.rb', line 8 def notice(string) Kernel.warn $stderr.tty? ? "#{Color.bold Color.green '✓'} #{string}" : "✓ #{string}" end |
.warn(string) ⇒ Object
20 21 22 |
# File 'lib/ellipses/support/ui.rb', line 20 def warn(string) Kernel.warn $stderr.tty? ? "#{Color.bold Color.yellow '!'} #{string}" : "! #{string}" end |