Module: WhoCalledMe::Utils::ColourUtils

Defined in:
lib/who_called_me/utils/colour_utils.rb

Constant Summary collapse

NO_COLOUR =
"\033[0m"
RED =
"\033[31m"
LRED =
"\033[1;31m"
BLUE =
"\033[34m"
GREEN =
"\033[32m"
YELLOW =
"\033[1;33m"

Instance Method Summary collapse

Instance Method Details

#blue(str) ⇒ Object



13
# File 'lib/who_called_me/utils/colour_utils.rb', line 13

def blue(  str) [BLUE,   str, NO_COLOUR].join  end

#colour_current_line(str) ⇒ Object



17
18
19
# File 'lib/who_called_me/utils/colour_utils.rb', line 17

def colour_current_line(str)
  [YELLOW, str, NO_COLOUR].join
end

#green(str) ⇒ Object



14
# File 'lib/who_called_me/utils/colour_utils.rb', line 14

def green( str) [GREEN,  str, NO_COLOUR].join  end

#lred(str) ⇒ Object



12
# File 'lib/who_called_me/utils/colour_utils.rb', line 12

def lred(  str) [LRED,   str, NO_COLOUR].join  end

#red(str) ⇒ Object



11
# File 'lib/who_called_me/utils/colour_utils.rb', line 11

def red(   str) [RED,    str, NO_COLOUR].join  end

#yellow(str) ⇒ Object



15
# File 'lib/who_called_me/utils/colour_utils.rb', line 15

def yellow(str) [YELLOW, str, NO_COLOUR].join  end