Sha256: eeed3e22b11cd58f7f3b9193640deaf3c38adbed1a0cc277953af139cf12eab8
Contents?: true
Size: 426 Bytes
Versions: 17
Compression:
Stored size: 426 Bytes
Contents
# frozen_string_literal: true module I18n module Tasks module RainbowUtils # TODO: This method can be removed after below PR is released. # https://github.com/sickill/rainbow/pull/53 def self.faint_color(str) presenter = Rainbow(str) return presenter unless Rainbow.enabled Rainbow::Presenter.new(Rainbow::StringUtils.wrap_with_sgr(presenter, [2])) end end end end
Version data entries
17 entries across 17 versions & 1 rubygems