[DOC] Tweaks for Hash#has_value?

This commit is contained in:
BurdetteLamar 2025-03-26 15:15:15 -05:00 committed by Peter Zhu
parent a4a6019550
commit 4e3bc65e88
Notes: git 2025-03-29 21:04:49 +00:00

5
hash.c
View file

@ -3890,9 +3890,10 @@ rb_hash_search_value(VALUE key, VALUE value, VALUE arg)
/*
* call-seq:
* has_value?(value) -> true or false
* value?(value) -> true or false
*
* Returns +true+ if +value+ is a value in +self+, otherwise +false+.
* Returns whether +value+ is a value in +self+.
*
* Related: {Methods for Querying}[rdoc-ref:Hash@Methods+for+Querying].
*/
static VALUE