lib/protest/utils/colorful_output.rb
# Returns a hash with the color values for different states. Override this
# method safely to change the output colors. The defaults are:
#
# :passed::  Light green
# :pending:: Light yellow
# :errored:: Light purple
# :failed::  Light red
#
# See http://www.hypexr.org/bash_tutorial.php#colors for a description of
# Bash color codes.
Returns a hash with the color values for different states. Override this
method safely to change the output colors. The defaults are.




Returns a hash with the color values for different states . Override this method safely to change the output colors . The defaults are .
def colorize(string, state)
          if state == :normal || !ColorfulOutput.colorize
            string
          else
            "\033[#{color_for_state(state)}m#{string}\033[0m"
          end
        end
def colorize ( string , state ) if state == :normal || ! ColorfulOutput . colorize string else "\033[#{color_for_state(state)}m#{string}\033[0m" end end
Returns a hash with the color values for different states.
Returns a hash with the color values for different states .
string
state