Sha256: c78a7923008d6e6ff5a47f333933c1a8fee3ec633e4f5e2bfbd3a65e37746a4a
Contents?: true
Size: 244 Bytes
Versions: 4
Compression:
Stored size: 244 Bytes
Contents
class String # colorization def colorize(color_code) "\e[#{color_code}m#{self}\e[0m" end def red colorize(31) end def green colorize(32) end def yellow colorize(33) end def pink colorize(35) end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
discobolo-0.0.1 | lib/core_ext/string/color.rb |
perkins-0.0.5 | lib/core_ext/string/color.rb |
perkins-0.0.3 | lib/core_ext/string/color.rb |
perkins-0.0.2 | lib/core_ext/string/color.rb |