module I18n::Processes::RainbowUtils

Public Class Methods

faint_color(str) click to toggle source

TODO: This method can be removed after below PR is released. github.com/sickill/rainbow/pull/53

# File lib/i18n/processes/rainbow_utils.rb, line 7
def self.faint_color(str)
  presenter = Rainbow(str)
  return presenter unless Rainbow.enabled
  Rainbow::Presenter.new(Rainbow::StringUtils.wrap_with_sgr(presenter, [2]))
end