Method: CommandKit::Colors::ANSI.blue

Defined in:
lib/command_kit/colors.rb

.blue(string = nil) ⇒ String, BLUE

Sets the text color to blue.

Parameters:

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

    An optional string.

Returns:

  • (String, BLUE)

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

See Also:



214
215
216
217
218
# File 'lib/command_kit/colors.rb', line 214

def blue(string=nil)
  if string then "#{BLUE}#{string}#{RESET_COLOR}"
  else           BLUE
  end
end