1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[Doc] Add Hash#value? into call-seq (#4293)

This commit is contained in:
Kenichi Kamiya 2021-04-15 11:14:43 +09:00 committed by GitHub
parent d9a5281363
commit 92545977de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2021-04-15 11:15:03 +09:00
Merged-By: zzak

3
hash.c
View file

@ -3669,6 +3669,9 @@ rb_hash_search_value(VALUE key, VALUE value, VALUE arg)
/* /*
* call-seq: * call-seq:
* hash.has_value?(value) -> true or false * hash.has_value?(value) -> true or false
* hash.value?(value) -> true or false
*
* Method #value? is an alias for \#has_value?.
* *
* Returns +true+ if +value+ is a value in +self+, otherwise +false+. * Returns +true+ if +value+ is a value in +self+, otherwise +false+.
*/ */