diff options
author | Burdette Lamar <[email protected]> | 2021-12-03 07:12:28 -0600 |
---|---|---|
committer | GitHub <[email protected]> | 2021-12-03 07:12:28 -0600 |
commit | 28fb6d6b9e06a632f96244a635a045622a6be276 (patch) | |
tree | 1c96616dc764d2b67c83fe9443b7f5ae1f8c9ea8 /hash.c | |
parent | 324d57df0b28982590609d7ae080f82074a82a5c (diff) |
Adding links to literals and Kernel (#5192)
* Adding links to literals and Kernel
Notes
Notes:
Merged-By: BurdetteLamar <[email protected]>
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -6598,13 +6598,13 @@ env_dup(VALUE obj) * * === Creating a \Hash * - * Here are three ways to create a \Hash: + * You can create a \Hash object explicitly with: * - * - \Method <tt>Hash.new</tt> - * - \Method <tt>Hash[]</tt> - * - Literal form: <tt>{}</tt>. + * - A {hash literal}[doc/syntax/literals_rdoc.html#label-Hash+Literals]. * - * --- + * You can convert certain objects to Hashes with: + * + * - \Method {Hash}[Kernel.html#method-i-Hash]. * * You can create a \Hash by calling method Hash.new. * @@ -6614,8 +6614,6 @@ env_dup(VALUE obj) * h # => {} * h.class # => Hash * - * --- - * * You can create a \Hash by calling method Hash.[]. * * Create an empty Hash: @@ -6628,8 +6626,6 @@ env_dup(VALUE obj) * h = Hash[foo: 0, bar: 1, baz: 2] * h # => {:foo=>0, :bar=>1, :baz=>2} * - * --- - * * You can create a \Hash by using its literal form (curly braces). * * Create an empty \Hash: |