Sha256: 4fd340e5f61666a12739c087848bb6091209f7eaed56c66f2b1228c9098d7488

Contents?: true

Size: 324 Bytes

Versions: 40

Compression:

Stored size: 324 Bytes

Contents

# frozen_string_literal: true

require 'rainbow'

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
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
kovid-0.6.1 lib/kovid/painter.rb
kovid-0.6.0 lib/kovid/painter.rb
kovid-0.5.8 lib/kovid/painter.rb
kovid-0.5.7 lib/kovid/painter.rb
kovid-0.5.6 lib/kovid/painter.rb
kovid-0.5.5 lib/kovid/painter.rb
kovid-0.5.4 lib/kovid/painter.rb
kovid-0.5.3 lib/kovid/painter.rb
kovid-0.5.2 lib/kovid/painter.rb
kovid-0.5.0 lib/kovid/painter.rb
kovid-0.4.11 lib/kovid/painter.rb
kovid-0.4.10 lib/kovid/painter.rb
kovid-0.4.9 lib/kovid/painter.rb
kovid-0.4.8 lib/kovid/painter.rb
kovid-0.4.7 lib/kovid/painter.rb
kovid-0.4.6 lib/kovid/painter.rb
kovid-0.4.5 lib/kovid/painter.rb
kovid-0.4.4 lib/kovid/painter.rb
kovid-0.4.3 lib/kovid/painter.rb
kovid-0.4.2 lib/kovid/painter.rb