summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-12 15:01:13 (GMT)
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-12 15:01:13 (GMT)
commitc9154899e1a9374f182a14284b043e22cfe6b112 (patch)
tree153d3c0a1ba44f328a56b943e4de815b1c7883a1 /enum.c
parent9982bfd18b793c1eacf28c1b089c4c9e2428f843 (diff)
Add more example of `Enumerable#one?` [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/enum.c b/enum.c
index aaf4e33..9fd81ed 100644
--- a/enum.c
+++ b/enum.c
@@ -1515,6 +1515,7 @@ rb_nmin_run(VALUE obj, VALUE num, int by, int rev, int ary)
* [ nil, true, 99 ].one? #=> false
* [ nil, true, false ].one? #=> true
* [ nil, true, 99 ].one?(Integer) #=> true
+ * [].one? #=> false
*
*/
static VALUE