Module: I18n::Processes::RainbowUtils

Defined in:
lib/i18n/processes/rainbow_utils.rb

Class Method Summary collapse

Class Method Details

.faint_color(str) ⇒ Object

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



7
8
9
10
11
# 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