Emulates/delegates IO to $stdout or $stderr in order to capture output to report in the XML file.
# File lib/ci/reporter/test_suite.rb, line 20 def self.wrap(io, &assign) if defined?(RUBY_ENGINE) # JRuby, Ruby 1.9, etc. Delegate.new(io, &assign) else # Ruby 1.8 requires streams to be subclass of IO IO.new(io.fileno, "w").tap {|x| x.extend self; x.capture(io, &assign) } end end
Generated with the Darkfish Rdoc Generator 2.