Class: ShellOpts::Ansi

Inherits:
Object
  • Object
show all
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? ? "#{s}" : s 
end