Module: Spoom::Colorize

Extended by:
T::Sig
Included in:
Spoom::Cli::Helper, Printer
Defined in:
lib/spoom/colors.rb

Instance Method Summary collapse

Instance Method Details

#set_color(string, *color) ⇒ Object


41
42
43
# File 'lib/spoom/colors.rb', line 41

def set_color(string, *color)
  "#{color.map(&:ansi_code).join}#{string}#{Color::CLEAR.ansi_code}"
end