Module: Hunkify::Color

Defined in:
lib/hunkify/color.rb

Constant Summary collapse

RESET =
"\e[0m"
BOLD =
"\e[1m"
DIM =
"\e[2m"
CYAN =
"\e[36m"
GREEN =
"\e[32m"
YELLOW =
"\e[33m"
RED =
"\e[31m"
MAGENTA =
"\e[35m"
BLUE =
"\e[34m"

Class Method Summary collapse

Class Method Details

.blue(s) ⇒ Object



22
# File 'lib/hunkify/color.rb', line 22

def self.blue(s) = "#{BLUE}#{s}#{RESET}"

.bold(s) ⇒ Object



19
# File 'lib/hunkify/color.rb', line 19

def self.bold(s) = "#{BOLD}#{s}#{RESET}"

.cyan(s) ⇒ Object



15
# File 'lib/hunkify/color.rb', line 15

def self.cyan(s) = "#{CYAN}#{s}#{RESET}"

.dim(s) ⇒ Object



20
# File 'lib/hunkify/color.rb', line 20

def self.dim(s) = "#{DIM}#{s}#{RESET}"

.green(s) ⇒ Object



16
# File 'lib/hunkify/color.rb', line 16

def self.green(s) = "#{GREEN}#{s}#{RESET}"

.magenta(s) ⇒ Object



21
# File 'lib/hunkify/color.rb', line 21

def self.magenta(s) = "#{MAGENTA}#{s}#{RESET}"

.red(s) ⇒ Object



18
# File 'lib/hunkify/color.rb', line 18

def self.red(s) = "#{RED}#{s}#{RESET}"

.yellow(s) ⇒ Object



17
# File 'lib/hunkify/color.rb', line 17

def self.yellow(s) = "#{YELLOW}#{s}#{RESET}"