Bret Pettichord wrote:
> Ah, good call. Another way to cure it might be to disable buffering
>>> for $stdout completely, with:
>>>
>>>  $stdout.sync = true
>>>     
>>
>> Thanks. I looked for the syntax for that. I saw something like
>>
>>    IO#sync =  true
>>
>> That did not seem to work. Has it changed?
> Actually IO#sync means that you should call the sync method on an object 
> that belongs to the IO class. It does not represent executable Ruby 
> code. In your case it means to do $stdout.sync, as originally suggested.


Thanks, I had no idea of that. Is that some kind of meta language for 
Ruby or is it more general?
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to