mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8068f49727
commit
21d438243d
1 changed files with 7 additions and 0 deletions
|
@ -195,6 +195,13 @@ module Open3
|
||||||
#
|
#
|
||||||
# If opts[:stdin_data] is specified, it is sent to the command's standard input.
|
# 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)
|
def poutput3(*cmd, &block)
|
||||||
if Hash === cmd.last
|
if Hash === cmd.last
|
||||||
opts = cmd.pop.dup
|
opts = cmd.pop.dup
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue