class PrettyMultitask::Color

Class to provide some ANSI colors

Public Class Methods

green(str) click to toggle source
# File lib/pretty_multitask/color.rb, line 6
def self.green(str)
  "\e[32;1m#{str}\e[0m"
end
red(str) click to toggle source
# File lib/pretty_multitask/color.rb, line 14
def self.red(str)
  "\e[31;1m#{str}\e[0m"
end
yellow(str) click to toggle source
# File lib/pretty_multitask/color.rb, line 10
def self.yellow(str)
  "\e[33;1m#{str}\e[0m"
end