# File lib/rspec/core/formatters/base_text_formatter.rb, line 99 def color(text, color_code) color_enabled? ? "#{color_code}#{text}\e[0m" : text end