method
colour=
colour=(colour)
public
Hide source
# File lib/spec/runner/options.rb, line 186 def colour=(colour) @colour = colour if @colour && Config::CONFIG['host_os'] =~ /mswin|mingw/ ;\ begin ;\ replace_output = @output_stream.equal?($stdout) ;\ require 'rubygems' unless ENV['NO_RUBYGEMS'] ;\ 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