Method: CommandKit::Colors::ANSI.white

Defined in:
lib/command_kit/colors.rb

.white(string = nil) ⇒ String, WHITE

Sets the text color to white.

Parameters:

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

    An optional string.

Returns:

  • (String, WHITE)

    The colorized string or just WHITE if no arguments were given.

See Also:



271
272
273
274
275
# File 'lib/command_kit/colors.rb', line 271

def white(string=nil)
  if string then "#{WHITE}#{string}#{RESET_COLOR}"
  else           WHITE
  end
end