Module: Spoom::Colorize
- Included in:
- Spoom::Cli::Helper, Printer
- Defined in:
- lib/spoom/colors.rb
Instance Method Summary collapse
-
#set_color(string, *color) ⇒ Object
: (String string, *Color color) -> String.
Instance Method Details
#set_color(string, *color) ⇒ Object
: (String string, *Color color) -> String
37 38 39 |
# File 'lib/spoom/colors.rb', line 37 def set_color(string, *color) "#{color.map(&:ansi_code).join}#{string}#{Color::CLEAR.ansi_code}" end |