module StatsLite::Log
Public Class Methods
blue(str)
click to toggle source
# File lib/stats_lite/log.rb, line 22 def blue(str) colorize(str, 34) end
colorize(str, color_code)
click to toggle source
# File lib/stats_lite/log.rb, line 6 def colorize(str, color_code) "\e[#{color_code}m#{str}\e[0m" end
green(str)
click to toggle source
# File lib/stats_lite/log.rb, line 14 def green(str) colorize(str, 32) end
light_blue(str)
click to toggle source
# File lib/stats_lite/log.rb, line 30 def light_blue(str) colorize(str, 36) end
pink(str)
click to toggle source
# File lib/stats_lite/log.rb, line 26 def pink(str) colorize(str, 35) end
red(str)
click to toggle source
# File lib/stats_lite/log.rb, line 10 def red(str) colorize(str, 31) end
yellow(str)
click to toggle source
# File lib/stats_lite/log.rb, line 18 def yellow(str) colorize(str, 33) end