зеркало из https://github.com/github/ruby.git
[DOC] stated that Array#to_s calls #inspect [ci skip]
[ruby-list:50826]
This commit is contained in:
Родитель
289cad501d
Коммит
e2d97cffe5
3
array.c
3
array.c
|
@ -2442,7 +2442,8 @@ inspect_ary(VALUE ary, VALUE dummy, int recur)
|
|||
* ary.inspect -> string
|
||||
* ary.to_s -> string
|
||||
*
|
||||
* Creates a string representation of +self+.
|
||||
* Creates a string representation of +self+, by calling #inspect
|
||||
* method on each elements.
|
||||
*
|
||||
* [ "a", "b", "c" ].to_s #=> "[\"a\", \"b\", \"c\"]"
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче