Class: PrettyMultitask::Color

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

Class Method Summary collapse

Class Method Details

.green(str) ⇒ Object



3
4
5
# File 'lib/pretty_multitask/color.rb', line 3

def self.green(str)
  "\e[32;1m#{str}\e[0m"
end

.red(str) ⇒ Object



9
10
11
# File 'lib/pretty_multitask/color.rb', line 9

def self.red(str)
  "\e[31;1m#{str}\e[0m"
end

.yellow(str) ⇒ Object



6
7
8
# File 'lib/pretty_multitask/color.rb', line 6

def self.yellow(str)
  "\e[33;1m#{str}\e[0m"
end