Method: Common::Color#printf_red

Defined in:
lib/common/color.rb

#printf_red(text, bold = false, stdout = STDOUT) ⇒ Object

Print the text in red.

Parameters:

  • text

    The text to color.

  • bold (defaults to: false)

    Precise if we want to set the text in bold.

  • stdout (defaults to: STDOUT)

    The output standard.

Author:

  • tmarmin



55
56
57
# File 'lib/common/color.rb', line 55

def printf_red(text, bold=false, stdout = STDOUT)
  printf_color(text, 31, bold, stdout)
end