Method: Minitest::PrideIO#pride

Defined in:
lib/minitest/pride_plugin.rb

#pride(string) ⇒ Object

Color a string.


85
86
87
88
89
90
# File 'lib/minitest/pride_plugin.rb', line 85

def pride string
  string = "*" if string == "."
  c = @colors[@index % @size]
  @index += 1
  "#{ESC}#{c}m#{string}#{NND}"
end