Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/hammer/shell.rb

Overview

"hi".color(:cyan) -> ANSI-painted string. Raises on unknown color.

Instance Method Summary collapse

Instance Method Details

#color(name) ⇒ Object



191
192
193
# File 'lib/hammer/shell.rb', line 191

def color(name)
  Hammer::Shell.paint(self, name)
end