class Purdytest::IO
Constants
- COLORS
Public Instance Methods
method_missing(msg, *args)
click to toggle source
Calls superclass method
# File lib/purdytest.rb, line 33 def method_missing msg, *args return super unless io.respond_to?(msg) io.send(msg, *args) end
print(o)
click to toggle source
# File lib/purdytest.rb, line 22 def print o case o when '.' then io.print "\e[#{COLORS[pass]}m.\e[0m" when 'E' then io.print "\e[#{COLORS[error]}mE\e[0m" when 'F' then io.print "\e[#{COLORS[self.fail]}mF\e[0m" when 'S' then io.print "\e[#{COLORS[skip]}mS\e[0m" else io.print o end end