Sha256: 2291e781abdd116e9d1d45cba9fdadddd1d72f8386e99453f1bb987d767f01f9
Contents?: true
Size: 490 Bytes
Versions: 39
Compression:
Stored size: 490 Bytes
Contents
# frozen_string_literal: true module Karafka module Helpers # Simple wrapper for adding colors to strings module Colorize # @param string [String] string we want to have in green # @return [String] green string def green(string) "\033[0;32m#{string}\033[0m" end # @param string [String] string we want to have in red # @return [String] red string def red(string) "\033[0;31m#{string}\033[0m" end end end end
Version data entries
39 entries across 39 versions & 1 rubygems