diff options
| author | BurdetteLamar <burdettelamar@yahoo.com> | 2025-02-15 10:32:58 -0600 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2025-02-16 12:57:23 -0500 |
| commit | a94f00f7c1e3f4037f50b5aaa001b3717ffca325 (patch) | |
| tree | faf633724665a8c406595e898c79e9c0fc678b55 | |
| parent | e3ad6524906231d6bd72b5f568651ab142c68764 (diff) | |
[DOC] Add Related notes to a few methods
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12754
| -rw-r--r-- | hash.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -2850,6 +2850,8 @@ clear_i(VALUE key, VALUE value, VALUE dummy) * clear -> self * * Removes all entries from +self+; returns emptied +self+. + * + * Related: see {Methods for Deleting}[rdoc-ref:Hash@Methods+for+Deleting]. */ VALUE @@ -4183,6 +4185,8 @@ assoc_i(VALUE key, VALUE val, VALUE arg) * h.assoc(:bar) # => [:bar, 1] * * Returns +nil+ if the key is not found. + * + * Related: see {Methods for Fetching}[rdoc-ref:Hash@Methods+for+Fetching]. */ static VALUE @@ -4565,7 +4569,8 @@ any_p_i_pattern(VALUE key, VALUE value, VALUE arg) * With both argument +entry+ and a block given, * issues a warning and ignores the block. * - * Related: Enumerable#any? (which this method overrides). + * Related: Enumerable#any? (which this method overrides); + * see also {Methods for Fetching}[rdoc-ref:Hash@Methods+for+Fetching]. */ static VALUE |
