Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/git-hooks-helper/extensions/string.rb

Instance Method Summary collapse

Instance Method Details

#greenObject



3
# File 'lib/git-hooks-helper/extensions/string.rb', line 3

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

#redObject



2
# File 'lib/git-hooks-helper/extensions/string.rb', line 2

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

#yellowObject



4
# File 'lib/git-hooks-helper/extensions/string.rb', line 4

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