method
colour=
colour=(colour)
public
Hide source
# File lib/spec/runner/options.rb, line 140 def colour=(colour) @colour = colour if @colour && RUBY_PLATFORM =~ /mswin|mingw/ ;\ begin ;\ replace_output = @output_stream.equal?($stdout) ;\ require 'Win32/Console/ANSI' ;\ @output_stream = $stdout if replace_output ;\ rescue LoadError ;\ warn "You must 'gem install win32console' to use colour on Windows" ;\ @colour = false ;\ end end end