class Minitest::ColorfulReport
Attributes
io[R]
Public Class Methods
new(io)
click to toggle source
# File lib/minitest-colors.rb, line 20 def initialize(io) @io = io end
Public Instance Methods
method_missing(msg, *args)
click to toggle source
# File lib/minitest-colors.rb, line 37 def method_missing(msg, *args) io.send(msg, *args) end
print(o)
click to toggle source
# File lib/minitest-colors.rb, line 24 def print o case o when "." then io.print "\e[39m\e[32m#{o}\e[0m" when "E", "F" then io.print "\e[39m\e[31m#{o}\e[0m" when "S" then io.print "\e[39m\e[33m#{o}\e[0m" else io.print o end end