[DOC] Tweaks for Array#inspect (#11743)
This commit is contained in:
parent
c1d6d55f5a
commit
e41e4bacb1
Notes:
git
2024-10-02 13:15:43 +00:00
Merged-By: peterzhu2118 <peter@peterzhu.ca>
5
array.c
5
array.c
@ -2970,14 +2970,15 @@ inspect_ary(VALUE ary, VALUE dummy, int recur)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* array.inspect -> new_string
|
* inspect -> new_string
|
||||||
*
|
*
|
||||||
* Returns the new String formed by calling method <tt>#inspect</tt>
|
* Returns the new string formed by calling method <tt>#inspect</tt>
|
||||||
* on each array element:
|
* on each array element:
|
||||||
*
|
*
|
||||||
* a = [:foo, 'bar', 2]
|
* a = [:foo, 'bar', 2]
|
||||||
* a.inspect # => "[:foo, \"bar\", 2]"
|
* a.inspect # => "[:foo, \"bar\", 2]"
|
||||||
*
|
*
|
||||||
|
* Related: see {Methods for Querying}[rdoc-ref:Array@Methods+for+Querying].
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user