Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
self
/
root
/
proc
/
thread-self
/
root
/
opt
/
ruby-2.6
/
usr
/
share
/
ri
/
2.6.0
/
system
/
Enumerator
/
//proc/self/root/proc/thread-self/root/opt/ruby-2.6/usr/share/ri/2.6.0/system/Enumerator/peek-i.ri
U:RDoc::AnyMethod[iI" peek:ETI"Enumerator#peek;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"NReturns the next object in the enumerator, but doesn't move the internal ;TI"Mposition forward. If the position is already at the end, StopIteration ;TI"is raised.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli: textI"Example;T@o:RDoc::Markup::Verbatim; [I"a = [1,2,3] ;TI"e = a.to_enum ;TI"p e.next #=> 1 ;TI"p e.peek #=> 2 ;TI"p e.peek #=> 2 ;TI"p e.peek #=> 2 ;TI"p e.next #=> 2 ;TI"p e.next #=> 3 ;TI"%p e.peek #raises StopIteration;T:@format0: @fileI"enumerator.c;T:0@omit_headings_from_table_of_contents_below0I"e.peek -> object ;T0[ I"();T@FI"Enumerator;TcRDoc::NormalClass00