Module: Waithook::WithColor

Extended by:
WithColor
Included in:
WithColor
Defined in:
lib/waithook/cli.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#black(s) ⇒ Object



4
# File 'lib/waithook/cli.rb', line 4

def black(s);   "\033[30m#{s}\033[0m" end

#blue(s) ⇒ Object



8
# File 'lib/waithook/cli.rb', line 8

def blue(s);    "\033[34m#{s}\033[0m" end

#bold(s) ⇒ Object



13
# File 'lib/waithook/cli.rb', line 13

def bold(s);    "\e[1m#{s}\e[m"       end

#brown(s) ⇒ Object



7
# File 'lib/waithook/cli.rb', line 7

def brown(s);   "\033[33m#{s}\033[0m" end

#cyan(s) ⇒ Object



10
# File 'lib/waithook/cli.rb', line 10

def cyan(s);    "\033[36m#{s}\033[0m" end

#gray(s) ⇒ Object



11
# File 'lib/waithook/cli.rb', line 11

def gray(s);    "\033[37m#{s}\033[0m" end

#green(s) ⇒ Object



6
# File 'lib/waithook/cli.rb', line 6

def green(s);   "\033[32m#{s}\033[0m" end

#magenta(s) ⇒ Object



9
# File 'lib/waithook/cli.rb', line 9

def magenta(s); "\033[35m#{s}\033[0m" end

#red(s) ⇒ Object



5
# File 'lib/waithook/cli.rb', line 5

def red(s);     "\033[31m#{s}\033[0m" end

#yellow(s) ⇒ Object



12
# File 'lib/waithook/cli.rb', line 12

def yellow(s);  "\033[93m#{s}\033[0m" end