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

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
This commit is contained in:
kazu 2017-12-12 15:01:13 +00:00
parent 9982bfd18b
commit c9154899e1

1
enum.c
View file

@ -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