From: Thomas Hafner Date: 2007-08-13T07:20:03+09:00 Subject: Re: global_variable_set (like instance_variable_set) "Gregory Brown" wrote/schrieb : > Are you looking to do this to test a codebase that writes to $stdout > / $stderr? It's rather about using someone else's code. I'd prefer not to modify it, because otherwise I had to merge every update. > def print_to_stdout > @out.puts "something" > end > > def print_to_stderr > @err.puts "something" > end Replacing ``puts'' by ``@out.puts'' is such a modification of foreign code that I'd like to avoid. Regards Thomas