Method: Common::Color#color_red

Defined in:
lib/common/color.rb

#color_red(text, bold = false) ⇒ Object

Colorize the text in red.

Parameters:

  • text

    The text to color.

  • bold (defaults to: false)

    Precise if we want to set the text in bold.



63
64
65
# File 'lib/common/color.rb', line 63

def color_red(text, bold=false)
  return colorize_text(text, 31, bold)
end