📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-21 22:16:13
📂
/ (Root)
/
opt
/
alt
/
ruby30
/
share
/
ri
/
system
/
Kernel
📍 /opt/alt/ruby30/share/ri/system/Kernel
🔄 Refresh
✏️
Editing: Array-i.ri
Read Only
U:RDoc::AnyMethod[iI" Array:ETI"Kernel#Array;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"Returns +arg+ as an Array.;To:RDoc::Markup::BlankLine o; ; [I"OFirst tries to call <code>to_ary</code> on +arg+, then <code>to_a</code>. ;TI"LIf +arg+ does not respond to <code>to_ary</code> or <code>to_a</code>, ;TI"3returns an Array of length 1 containing +arg+.;T@o; ; [I"NIf <code>to_ary</code> or <code>to_a</code> returns something other than ;TI""an Array, raises a TypeError.;T@o:RDoc::Markup::Verbatim; [ I"'Array(["a", "b"]) #=> ["a", "b"] ;TI",Array(1..5) #=> [1, 2, 3, 4, 5] ;TI"-Array(key: :value) #=> [[:key, :value]] ;TI"Array(nil) #=> [] ;TI"Array(1) #=> [1];T:@format0: @fileI" object.c;T:0@omit_headings_from_table_of_contents_below0I"Array(arg) -> array ;T0[ I" (p1);T@FI"Kernel;TcRDoc::NormalModule00
💾 Save Changes
❌ Cancel