module Ftpmock::ColorUtils
Public Instance Methods
bold(string)
click to toggle source
# File lib/ftpmock/utils/color_utils.rb, line 23 def bold(string) "\e[1;39;49m#{string}\e[0m" end
colorize(string, color)
click to toggle source
# File lib/ftpmock/utils/color_utils.rb, line 10 def colorize(string, color) case color when :red "\e[0;91;49m#{string}\e[0m" when :yellow "\e[0;93;49m#{string}\e[0m" when :green "\e[0;92;49m#{string}\e[0m" else string end end
highlight(string)
click to toggle source
gem colorize, 'string'.bold.black.on_light_yellow
# File lib/ftpmock/utils/color_utils.rb, line 6 def highlight(string) "\e[1;30;103m#{string}\e[0m" end