module Niceql::StringColorize

Public Class Methods

colorize_err(err) click to toggle source
# File lib/niceql.rb, line 15
def self.colorize_err(err)
  #red ANSI color
  "\e[0;31;49m#{err}\e[0m"
end
colorize_str(str) click to toggle source
# File lib/niceql.rb, line 11
def self.colorize_str(str)
  #cyan ANSI color
  "\e[0;36;49m#{str}\e[0m"
end
colorize_verb( str) click to toggle source
# File lib/niceql.rb, line 7
def self.colorize_verb( str)
  #yellow ANSI color
  "\e[0;33;49m#{str}\e[0m"
end