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:
parent
9982bfd18b
commit
c9154899e1
1 changed files with 1 additions and 0 deletions
1
enum.c
1
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
|
||||
|
|
Loading…
Add table
Reference in a new issue