Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (24 sloc) 0.382 kb
module VcapStringExtensions
def red
colorize("\e[0m\e[31m")
end
def green
colorize("\e[0m\e[32m")
end
def yellow
colorize("\e[0m\e[33m")
end
def bold
colorize("\e[0m\e[1m")
end
def colorize(color_code)
unless $nocolor
"#{color_code}#{self}\e[0m"
else
self
end
end
end
class String
include VcapStringExtensions
end
Jump to Line
Something went wrong with that request. Please try again.