D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Enumerator
/
Filename :
next-i.ri
back
Copy
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"4See class-level notes about external iterators.;T: @fileI"enumerator.c;T:0@omit_headings_from_table_of_contents_below0I"e.next -> object ;T0[ I"();T@FI"Enumerator;TcRDoc::NormalClass00