diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-15 16:01:11 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-15 16:01:11 +0000 |
commit | e0ddacfc36bfeeecb0fcf37d3dc21eece522d3b9 (patch) | |
tree | ee112208e1eaa2f443b423e208eab353bf389ae8 /lib | |
parent | 8a92fc97092161be3fc44e58a84976f782fcba98 (diff) |
* ext/syck/rubyext.c (rb_syck_io_str_read): [ruby-core:03973]
* object.c (rb_obj_id_obsolete): warn always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/open3.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/open3.rb b/lib/open3.rb index 407cd7662c..1ddd213f61 100644 --- a/lib/open3.rb +++ b/lib/open3.rb @@ -9,6 +9,13 @@ # or # include Open3 # stdin, stdout, stderr = popen3('nroff -man') +# +# 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| ... } module Open3 #[stdin, stdout, stderr] = popen3(command); |