def format(string, options = {})
      unless no_color?
        require 'term/ansicolor'
        if options[:color]
          options[:color].split(/\s/).reverse_each do |color|
            if Term::ANSIColor.respond_to?(color.to_sym)
              string = Term::ANSIColor.send(color.to_sym, string)
            end
          end
        end
      end
      string
    end
def format(string, options = {})
      unless no_color?
        require 'term/ansicolor'
        if options[:color]
          options[:color].split(/\s/).reverse_each do |color|
            if Term::ANSIColor.respond_to?(color.to_sym)
              string = Term::ANSIColor.send(color.to_sym, string)
            end
          end
        end
      end
      string
    end
Public: Formats the given string with the specified color
 through Term::ANSIColor

 string  - the text to be formatted
 options - The hash of options used for formatting the text:
           :color - The color to be passed as a method to
                    Term::ANSIColor

 Examples

   Coveralls::Output.format("Hello World!", :color => "cyan")
   # => "\e[36mHello World\e[0m"

 Returns the formatted string.