📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 04:58:43
📂
/ (Root)
/
opt
/
alt
/
ruby30
/
share
/
ri
/
system
/
Array
📍 /opt/alt/ruby30/share/ri/system/Array
🔄 Refresh
✏️
Editing: map-i.ri
Read Only
U:RDoc::AnyMethod[iI"map:ETI"Array#map;TF:privateo:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"=Calls the block, if given, with each element of +self+; ;TI"Nreturns a new \Array whose elements are the return values from the block:;To:RDoc::Markup::Verbatim; [I"a = [:foo, 'bar', 2] ;TI"+a1 = a.map {|element| element.class } ;TI"'a1 # => [Symbol, String, Integer] ;T:@format0o; ; [I"1Returns a new \Enumerator if no block given:;To;; [I"a = [:foo, 'bar', 2] ;TI"a1 = a.map ;TI"1a1 # => #<Enumerator: [:foo, "bar", 2]:map> ;T;0o; ; [I"-Array#collect is an alias for Array#map.;T: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below000[ I"();T@FI" Array;TcRDoc::NormalClass0[@"FI"collect;T
💾 Save Changes
❌ Cancel