Sha256: 5c414ab5147d9b9ad173d5d8c8ad5da748e39933962e199dda729a7b7595fe1a
Contents?: true
Size: 431 Bytes
Versions: 1
Compression:
Stored size: 431 Bytes
Contents
# frozen_string_literal: true require 'rainbow' # Adds text color functionalities to String class class String def paint_white Rainbow(self).white.bg(:black).bold end def paint_red Rainbow(self).red.bg(:black).bold end def paint_green Rainbow(self).green.bg(:black).bold end def paint_yellow Rainbow(self).yellow.bg(:black).bold end def paint_highlight Rainbow(self).underline end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kovid-0.6.6 | lib/kovid/painter.rb |