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



163
164
165
# File 'lib/hammer/shell.rb', line 163

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