D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Array
/
Filename :
try_convert-c.ri
back
Copy
U:RDoc::AnyMethod[iI"try_convert:ETI"Array::try_convert;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I">Attempts to return an array, based on the given +object+.;To:RDoc::Markup::BlankLine o; ; [I"/If +object+ is an array, returns +object+.;T@o; ; [ I"9Otherwise if +object+ responds to <tt>:to_ary</tt>. ;TI"#calls <tt>object.to_ary</tt>: ;TI"Cif the return value is an array or +nil+, returns that value; ;TI"if not, raises TypeError.;T@o; ; [I"Otherwise returns +nil+.;T@o; ; [I"`Related: see {Methods for Creating an Array}[rdoc-ref:Array@Methods+for+Creating+an+Array].;T: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"<Array.try_convert(object) -> object, new_array, or nil ;T0[ I" (p1);T@FI" Array;TcRDoc::NormalClass00