Class: Colors

Inherits:
Object
  • Object
show all
Defined in:
lib/utils/colors.rb

Class Method Summary collapse

Class Method Details

.in_green(text) ⇒ Object



10
11
12
# File 'lib/utils/colors.rb', line 10

def self.in_green(text)
  "\e[32m#{text}\e[0m"
end

.in_red(text) ⇒ Object



2
3
4
# File 'lib/utils/colors.rb', line 2

def self.in_red(text)
  "\e[31m#{text}\e[0m"
end

.in_yellow(text) ⇒ Object



6
7
8
# File 'lib/utils/colors.rb', line 6

def self.in_yellow(text)
  "\e[33m#{text}\e[0m"
end