mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Improve documentation of Array.try_convert
* Mostly to try the new git repository.
This commit is contained in:
parent
429fdf3de2
commit
87d2a2df1b
1 changed files with 2 additions and 2 deletions
4
array.c
4
array.c
|
@ -879,8 +879,8 @@ rb_check_to_array(VALUE ary)
|
|||
* call-seq:
|
||||
* Array.try_convert(obj) -> array or nil
|
||||
*
|
||||
* Tries to convert +obj+ into an array, using +to_ary+ method. Returns the
|
||||
* converted array or +nil+ if +obj+ cannot be converted for any reason.
|
||||
* Tries to convert +obj+ into an array, using the +to_ary+ method. Returns
|
||||
* the converted array or +nil+ if +obj+ cannot be converted.
|
||||
* This method can be used to check if an argument is an array.
|
||||
*
|
||||
* Array.try_convert([1]) #=> [1]
|
||||
|
|
Loading…
Add table
Reference in a new issue