Class: SpellCheck::ColorString

Inherits:
Object
  • Object
show all
Defined in:
lib/spellcheck/color_string.rb

Constant Summary collapse

RED =
31
GREEN =
32
LIGHT_BLUE =
36

Class Method Summary collapse

Class Method Details

.green(str) ⇒ Object



12
13
14
# File 'lib/spellcheck/color_string.rb', line 12

def green(str)
  colorize(str, GREEN)
end

.light_blue(str) ⇒ Object



16
17
18
# File 'lib/spellcheck/color_string.rb', line 16

def light_blue(str)
  colorize(str, LIGHT_BLUE)
end

.red(str) ⇒ Object



8
9
10
# File 'lib/spellcheck/color_string.rb', line 8

def red(str)
  colorize(str, RED)
end