D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
StopIteration
/
Filename :
result-i.ri
back
Copy
U:RDoc::AnyMethod[iI"result:ETI"StopIteration#result;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I".Returns the return value of the iterator.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"o = Object.new ;TI"def o.each ;TI" yield 1 ;TI" yield 2 ;TI" yield 3 ;TI" 100 ;TI" end ;TI" ;TI"e = o.to_enum ;TI" ;TI")puts e.next #=> 1 ;TI")puts e.next #=> 2 ;TI")puts e.next #=> 3 ;TI" ;TI"begin ;TI" e.next ;TI" rescue StopIteration => ex ;TI"+ puts ex.result #=> 100 ;TI"end;T:@format0: @fileI"enumerator.c;T:0@omit_headings_from_table_of_contents_below0I"result -> value ;T0[ I"();T@$FI"StopIteration;TcRDoc::NormalClass00