# File lib/main/base.rb, line 374 def stdout= io unless(defined?(@stdout) and (@stdout == io)) @stdout = if io.respond_to? 'write' io else fd = open io.to_s, 'w+' @finalizers.push lambda{ fd.close } fd end STDOUT.reopen @stdout rescue($stdout = @stdout) end end