method
colour
colour(text, colour_code)
protected
Hide source
# File lib/spec/runner/formatter/base_text_formatter.rb, line 108 def colour(text, colour_code) return text unless colour? && output_to_tty? "#{colour_code}#{text}\e[0m" end