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.7
/
usr
/
share
/
ri
/
2.7.0
/
system
/
Enumerator
/
//proc/self/root/proc/thread-self/root/opt/ruby-2.7/usr/share/ri/2.7.0/system/Enumerator/next-i.ri
U:RDoc::AnyMethod[iI" next:ETI"Enumerator#next;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"OReturns the next object in the enumerator, and move the internal position ;TI"Mforward. When the position reached at the end, StopIteration 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.next #=> 2 ;TI"p e.next #=> 3 ;TI"&p e.next #raises StopIteration ;T:@format0o; ; [I"QNote that enumeration sequence by +next+ does not affect other non-external ;TI"Menumeration methods, unless the underlying iteration methods itself has ;TI"$side-effect, e.g. IO#each_line.;T: @fileI"enumerator.c;T:0@omit_headings_from_table_of_contents_below0I"e.next -> object ;T0[ I"();T@FI"Enumerator;TcRDoc::NormalClass00