Sha256: d22bead69b76010c2a2ba647094fd0926fc8eb5156887e51315f9a0988463c88
Contents?: true
Size: 666 Bytes
Versions: 46
Compression:
Stored size: 666 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 # @param string [String] string we want to have in yellow # @return [String] yellow string def yellow(string) "\033[1;33m#{string}\033[0m" end end end end
Version data entries
46 entries across 46 versions & 1 rubygems