Sha256: 0b28ee89413e1b774a443f2eaefb1cedca7652fb3e1754d8881433ab7dcb8bea

Contents?: true

Size: 380 Bytes

Versions: 11

Compression:

Stored size: 380 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

  def paint_highlight
    Rainbow(self).underline
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
kovid-0.7.1 lib/kovid/painter.rb
kovid-0.7.0 lib/kovid/painter.rb
kovid-0.6.15 lib/kovid/painter.rb
kovid-0.6.14 lib/kovid/painter.rb
kovid-0.6.13 lib/kovid/painter.rb
kovid-0.6.12 lib/kovid/painter.rb
kovid-0.6.11 lib/kovid/painter.rb
kovid-0.6.10 lib/kovid/painter.rb
kovid-0.6.9 lib/kovid/painter.rb
kovid-0.6.8 lib/kovid/painter.rb
kovid-0.6.7 lib/kovid/painter.rb