Class: ReqPat::Coloring

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

Class Method Summary collapse

Class Method Details

.red(msg) ⇒ Object



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

def self.red(msg)
  "\033[31m#{msg}\033[0m\n"
end

.yellow(msg) ⇒ Object



7
8
9
# File 'lib/coloring.rb', line 7

def self.yellow(msg)
  "\033[33m#{msg}\033[0m\n"
end