U:RDoc::AnyMethod[iI"capture2e:EFI"Open3::capture2e;TT: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"VOpen3.capture2e captures the standard output and the standard error of a command.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"Mstdout_and_stderr_str, status = Open3.capture2e([env,] cmd... [, opts]) ;T: @format0o; ; [I"GThe arguments env, cmd and opts are passed to Open3.popen3 except ;TI"Xopts[:stdin_data] and opts[:binmode]. See Process.spawn.;T@o; ; [I"`If opts[:stdin_data] is specified, it is sent to the command's standard input.;T@o; ; [I"SIf opts[:binmode] is true, internal pipes are set to binary mode.;T@o; ; [I" Example:;T@o; ; [I"# capture make log ;TI"*make_log, s = Open3.capture2e("make");T; 0: @fileI"lib/open3.rb;T:0@omit_headings_from_table_of_contents_below000[I"4(*cmd, stdin_data: nil, binmode: false, **opts);T@#FI" Open3;FcRDoc::NormalModule00