Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Enumerator
/
//opt/alt/ruby21/share/ri/2.1.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