diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-04 14:35:19 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-04 14:35:19 +0000 |
commit | 21d438243dd1afb335277e8cbef801eff07c0346 (patch) | |
tree | 54222275fc312480bd0e07d75727354fb0063a20 | |
parent | 8068f497271643dea2842bcddb37bb41c5dd72fd (diff) | |
download | ruby-21d438243dd1afb335277e8cbef801eff07c0346.tar.gz |
rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 7bf330c825..e70aaca6ef 100644 --- a/lib/open3.rb +++ b/lib/open3.rb @@ -195,6 +195,13 @@ module Open3 # # If opts[:stdin_data] is specified, it is sent to the command's standard input. # + # Example: + # + # o, e, s = Open3.poutput3("echo a; sort >&2", :stdin_data=>"foo\nbar\nbaz\n") + # p o #=> "a\n" + # p e #=> "bar\nbaz\nfoo\n" + # p s #=> #<Process::Status: pid 32682 exit 0> + # def poutput3(*cmd, &block) if Hash === cmd.last opts = cmd.pop.dup |