Sha256: f47d320f2f4479160df8afb54cb6b745d714b72190f642c9db88fa346b393cbe
Contents?: true
Size: 232 Bytes
Versions: 40
Compression:
Stored size: 232 Bytes
Contents
class String def colorize(pattern) self.split(/(#{pattern})/).map{|term| if term =~ /#{pattern}/ term = term.color(Tw::App::Render.color_code term).bright.underline end term }.join('') end end
Version data entries
40 entries across 40 versions & 1 rubygems