Sha256: 64c2dc343476a553cd9e0a39e7b4e8f18a87a37d8e38cd3d1b6389b484fdd61f
Contents?: true
Size: 263 Bytes
Versions: 7
Compression:
Stored size: 263 Bytes
Contents
# frozen_string_literal: true module RubyCritic module Colorize def colorize(text, color_code) "\e[#{color_code}m#{text}\e[0m" end def red(text) colorize(text, 31) end def green(text) colorize(text, 32) end end end
Version data entries
7 entries across 7 versions & 1 rubygems