Forum: Ruby Setting output separator for IO object

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
3a81ced4012650ca2004c9bff7b18202?d=identicon&s=25 Ronald F. (rovf)
on 2017-01-25 14:01
(Crossposting note: I have also posted this question at
because I didn't get any response here).

From the documentation of IO#print:

"Writes the given object(s) to ios. ... If the output record separator
($\) is not nil, it will be appended to the output."

If I take this literally, it meanst that I can only have a single output
separator (S\) for all streams. But in general, I have several streams
open for writing. How can I set different output separators for them?
This topic is locked and can not be replied to.