| Class | IORedirect |
| In: |
lib/more/facets/ioredirect.rb
|
| Parent: | Object |
A class to redirect $stdout, or other IO object, to a StringIO object, or any other object with a write() method.
s = StringIO.new
r = IORedirect.redirect($stdout, s) do
$stdout.puts "this is a test"
end