Sha256: c1da9e604fcb1f402d566d18b6440ffcee1a0ab688c8cb1945b6223bc9823ddf
Contents?: true
Size: 184 Bytes
Versions: 16
Compression:
Stored size: 184 Bytes
Contents
module Colors extend self def colorize(text, color_code) "\e[#{color_code}m#{text}\e[0m" end def red(text); colorize(text, 31); end def green(text); colorize(text, 32); end end
Version data entries
16 entries across 16 versions & 1 rubygems