Sha256: 50980468bc268f73e8d96870868c20ab77a17db691eae22aded8fd0f2e094d2b
Contents?: true
Size: 412 Bytes
Versions: 5
Compression:
Stored size: 412 Bytes
Contents
module SpellCheck class ColorString RED = 31 GREEN = 32 LIGHT_BLUE = 36 class << self def red(str) colorize(str, RED) end def green(str) colorize(str, GREEN) end def light_blue(str) colorize(str, LIGHT_BLUE) end private def colorize(str, color_code) "\e[#{color_code}m#{str}\e[0m" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems