Module: Stable::Formatters::Colors

Extended by:
Colors
Included in:
Colors
Defined in:
lib/stable/formatters/colors.rb

Instance Method Summary collapse

Instance Method Details

#green(text) ⇒ Object



7
8
9
# File 'lib/stable/formatters/colors.rb', line 7

def green(text)
  "\e[32m#{text}\e[0m"
end

#light_blue(text) ⇒ Object



19
20
21
# File 'lib/stable/formatters/colors.rb', line 19

def light_blue(text)
  "\e[94m#{text}\e[0m"
end

#red(text) ⇒ Object



11
12
13
# File 'lib/stable/formatters/colors.rb', line 11

def red(text)
  "\e[31m#{text}\e[0m"
end

#yellow(text) ⇒ Object



15
16
17
# File 'lib/stable/formatters/colors.rb', line 15

def yellow(text)
  "\e[33m#{text}\e[0m"
end