Class: ShellOpts::Ansi
- Inherits:
-
Object
- Object
- ShellOpts::Ansi
- Defined in:
- lib/shellopts/ansi.rb
Class Method Summary collapse
Class Method Details
.bold(bold = true, s) ⇒ Object
3 4 5 |
# File 'lib/shellopts/ansi.rb', line 3 def self.bold(bold = true, s) bold && $stdout.tty? ? "[1m#{s}[0m" : s end |