module EasyCard::ColorString

Public Instance Methods

bold(str) click to toggle source
# File lib/easycard/color_string.rb, line 4
def bold(str);  "\033[1m#{str}\033[22m" end
green(str) click to toggle source
# File lib/easycard/color_string.rb, line 6
def green(str); bold("\033[32m#{str}\033[0m") end
red(str) click to toggle source
# File lib/easycard/color_string.rb, line 5
def red(str);  bold("\033[31m#{str}\033[0m") end
yellow(str) click to toggle source
# File lib/easycard/color_string.rb, line 7
def yellow(str);  bold("\033[33m#{str}\033[0m") end