Sha256: fb77612328fe2d0d13815a6abf4430301efbd8cef8e378ffddf53027a66ed3c4
Contents?: true
Size: 353 Bytes
Versions: 55
Compression:
Stored size: 353 Bytes
Contents
class String def colorize(color_code) "\e[#{color_code}m#{self}\e[0m" end def bold "\e[1m#{self}\e[0m" end def white colorize(37) end def green colorize(32) end def yellow colorize(33) end def red colorize(31) end def blue colorize(34) end def grey colorize("90") end end
Version data entries
55 entries across 55 versions & 2 rubygems