Sha256: 82f9eb125ca20880a439210c6f62aa3e696bbb2cedb2c705b1c260f7c91223c5
Contents?: true
Size: 213 Bytes
Versions: 1
Compression:
Stored size: 213 Bytes
Contents
module StringColorization refine String do def colorize(color_code) "\e[#{color_code}m#{self}\e[0m" end def red colorize(31) end def green colorize(32) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
panamax_template_validator-0.0.2 | lib/refinements/string_colorization.rb |