diff options
author | Burdette Lamar <BurdetteLamar@Yahoo.com> | 2021-12-03 07:12:28 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-03 07:12:28 -0600 |
commit | 28fb6d6b9e06a632f96244a635a045622a6be276 (patch) | |
tree | 1c96616dc764d2b67c83fe9443b7f5ae1f8c9ea8 /array.c | |
parent | 324d57df0b28982590609d7ae080f82074a82a5c (diff) |
Adding links to literals and Kernel (#5192)
* Adding links to literals and Kernel
Notes
Notes:
Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -7843,13 +7843,20 @@ rb_ary_deconstruct(VALUE ary) * * == Creating Arrays * - * A new array can be created by using the literal constructor - * <code>[]</code>. Arrays can contain different types of objects. For + * You can create an \Array object explicitly with: + * + * - An {array literal}[doc/syntax/literals_rdoc.html#label-Array+Literals]. + * + * You can convert certain objects to Arrays with: + * + * - \Method {Array}[Kernel.html#method-i-Array]. + * + * An \Array can contain different types of objects. For * example, the array below contains an Integer, a String and a Float: * * ary = [1, "two", 3.0] #=> [1, "two", 3.0] * - * An array can also be created by explicitly calling Array.new with zero, one + * An array can also be created by calling Array.new with zero, one * (the initial size of the Array) or two arguments (the initial size and a * default object). * |