ruby / stringio

Pseudo `IO` class from/to `String`.
BSD 2-Clause "Simplified" License
36 stars 26 forks source link

NULL StringIO by `StringIO.new(nil)` #90

Closed nobu closed 8 months ago

nobu commented 8 months ago

This may be useful, analog to /dev/null, for the case when $stdout needs the destination but the result does not matter.

nobu commented 8 months ago

The description updated. I can't remember the actual case I needed this though.