Method: Hanami::Utils::ShellColor.call
- Defined in:
- lib/hanami/utils/shell_color.rb
permalink .call(input, color:) ⇒ String
Colorizes output 8 colors available: black, red, green, yellow, blue, magenta, cyan, and gray
52 53 54 |
# File 'lib/hanami/utils/shell_color.rb', line 52 def self.call(input, color:) "\e[#{color_code(color)}m#{input}\e[0m" end |