Class: Buildaemon::Terminal

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

Defined Under Namespace

Modules: Color, Ground

Class Method Summary collapse

Class Method Details

.ToColorString(colorCode, string) ⇒ Object



28
29
30
# File 'lib/buildaemon.rb', line 28

def self.ToColorString(colorCode, string)
  "\e[#{colorCode}m#{string}\e[0m"
end