Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Addition to open3.rb documentation detailing use of blocks: msg#00000

Subject: Addition to open3.rb documentation detailing use of blocks
Hello,

I just learned that open3's popen3 method supports the use of blocks.
Is it possible to add this (or something better) to the end of the current
open3 source documentation?

-----
#
#  popen3 can also take a block which will receive stdin, stdout and stderr
#  as parameters.  This ensures stdin, stdout and stderr are closed once
#  the block exits.
#
#  Such as
#      Open3.popen3('nroff -man') { |stdin, stdout, stderr| ... }
-----

Thanks,
Zev Blut




<Prev in Thread] Current Thread [Next in Thread>