summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorKenichi Kamiya <kachick1@gmail.com>2021-04-15 11:14:43 +0900
committerGitHub <noreply@github.com>2021-04-15 11:14:43 +0900
commit92545977de0664bd2f37455dd4c4ac4e716a8be2 (patch)
treef231985e8b9c9d0b54df36b179963db4e7ecd3c9 /hash.c
parentd9a5281363f2ffb024fbce9d647f5aa2362b5477 (diff)
[Doc] Add Hash#value? into call-seq (#4293)
Notes
Notes: Merged-By: zzak
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hash.c b/hash.c
index 60fad036c2..1498f30f5a 100644
--- a/hash.c
+++ b/hash.c
@@ -3669,6 +3669,9 @@ rb_hash_search_value(VALUE key, VALUE value, VALUE arg)
/*
* call-seq:
* 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+.
*/