Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/kovid/painter.rb

Instance Method Summary collapse

Instance Method Details

#paint_greenObject



13
14
15
# File 'lib/kovid/painter.rb', line 13

def paint_green
  Rainbow(self).green.bg(:black).bold
end

#paint_highlightObject



21
22
23
# File 'lib/kovid/painter.rb', line 21

def paint_highlight
  Rainbow(self).underline
end

#paint_redObject



9
10
11
# File 'lib/kovid/painter.rb', line 9

def paint_red
  Rainbow(self).red.bg(:black).bold
end

#paint_whiteObject



5
6
7
# File 'lib/kovid/painter.rb', line 5

def paint_white
  Rainbow(self).white.bg(:black).bold
end

#paint_yellowObject



17
18
19
# File 'lib/kovid/painter.rb', line 17

def paint_yellow
  Rainbow(self).yellow.bg(:black).bold
end