HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/ri/3.0.0/system/IO/expect-i.ri
U:RDoc::AnyMethod[iI"expect:ETI"IO#expect;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"RReads from the IO until the given +pattern+ matches or the +timeout+ is over.;To:RDoc::Markup::BlankLineo;
;	[I"HIt returns an array with the read buffer, followed by the matches. ;TI"MIf a block is given, the result is yielded to the block and returns nil.;T@o;
;	[I"LWhen called without a block, it waits until the input that matches the ;TI"Jgiven +pattern+ is obtained from the IO or the time specified as the ;TI"Ptimeout passes. An array is returned when the pattern is obtained from the ;TI"OIO. The first element of the array is the entire string obtained from the ;TI"MIO until the pattern matches, followed by elements indicating which the ;TI"Cpattern which matched to the anchor in the regular expression.;T@o;
;	[	I"PThe optional timeout parameter defines, in seconds, the total time to wait ;TI"Ofor the pattern.  If the timeout expires or eof is found, nil is returned ;TI"Por yielded.  However, the buffer in a timeout session is kept for the next ;TI":expect call.  The default timeout is 9999999 seconds.;T:
@fileI"ext/pty/lib/expect.rb;T:0@omit_headings_from_table_of_contents_below0I"IO#expect(pattern,timeout=9999999)                  ->  Array
IO#expect(pattern,timeout=9999999) { |result| ... } ->  nil
;TI"result;T[I"(pat,timeout=9999999);T@!FI"IO;TcRDoc::NormalClass00