class String

some slight mods to the string class to allow colorization

Public Instance Methods

bg_green() click to toggle source
# File lib/utils/logbook.rb, line 53
def bg_green
  "\e[42m#{self}\e[0m"
end
bg_red() click to toggle source
# File lib/utils/logbook.rb, line 49
def bg_red
  "\e[41m#{self}\e[0m"
end
black() click to toggle source
# File lib/utils/logbook.rb, line 45
def black
  "\e[30m#{self}\e[0m"
end
blue() click to toggle source
# File lib/utils/logbook.rb, line 41
def blue
  "\e[34m#{self}\e[0m"
end
green() click to toggle source
# File lib/utils/logbook.rb, line 37
def green
  "\e[32m#{self}\e[0m"
end