From: hemant Date: 2010-04-30T03:25:15+09:00 Subject: Re: Use of STDOUT.flush after puts On Thu, Apr 29, 2010 at 10:56 PM, Robert Dober wrote: > On Thu, Apr 29, 2010 at 2:31 PM, hemant wrote: > Hmm, can you? I am not that sure, here is the behavior I was thinking about: > > def with_stdout stdout, &blk >  original_stdout = $stdout >  $stdout = stdout >  blk[] > ensure >  $stdout = original_stdout > end > Fair enough, may be in that pattern. But for general usage, #reopen suffices. But in any case, it may be bikeshedding to further press the point. :D -- Let them talk of their oriental summer climes of everlasting conservatories; give me the privilege of making my own summer with my own coals. http://gnufied.org