Method: CommandKit::Colors::ANSI.bold

Defined in:
lib/command_kit/colors.rb

.bold(string = nil) ⇒ String, BOLD

Bolds the text.

Parameters:

  • string (String, nil) (defaults to: nil)

    An optional string.

Returns:

  • (String, BOLD)

    The bolded string or just BOLD if no arguments were given.

See Also:



119
120
121
122
123
# File 'lib/command_kit/colors.rb', line 119

def bold(string=nil)
  if string then "#{BOLD}#{string}#{RESET_INTENSITY}"
  else           BOLD
  end
end