Module: Pronto::Formatter::Colorizable

Included in:
TextMessageDecorator
Defined in:
lib/pronto/formatter/colorizable.rb

Instance Method Summary collapse

Instance Method Details

#colorize(string, color) ⇒ Object



4
5
6
# File 'lib/pronto/formatter/colorizable.rb', line 4

def colorize(string, color)
  rainbow.wrap(string).color(color)
end