Class: Termworld::Utils::Color

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

Class Method Summary collapse

Class Method Details

.bluen(str) ⇒ Object



14
15
16
# File 'lib/termworld/utils/color.rb', line 14

def bluen(str)
  "\e[34m#{str}\e[0m"
end

.greenen(str) ⇒ Object



8
9
10
# File 'lib/termworld/utils/color.rb', line 8

def greenen(str)
  "\e[32m#{str}\e[0m"
end

.reden(str) ⇒ Object



5
6
7
# File 'lib/termworld/utils/color.rb', line 5

def reden(str)
  "\e[31m#{str}\e[0m"
end

.yellowen(str) ⇒ Object



11
12
13
# File 'lib/termworld/utils/color.rb', line 11

def yellowen(str)
  "\e[33m#{str}\e[0m"
end