summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authorJeremy Evans <[email protected]>2021-11-05 07:08:21 -0700
committerJeremy Evans <[email protected]>2021-11-05 06:22:14 -0900
commite83c02a768af61cd0890a75e90bcae1119d8bd93 ()
tree84ecc55409c1316bdbceb92eaa9fc4ac642987c0 /enum.c
parent907aa4752752869193f333c4114da85080ec03e3 (diff)
Delegate keywords from Enumerable#to_a to #each
Fixes [Bug #18289]
Notes: Merged: https://.com/ruby/ruby/pull/5086
-rw-r--r--enum.c2
1 files changed, 1 insertions, 1 deletions
@@ -713,7 +713,7 @@ enum_to_a(int argc, VALUE *argv, VALUE obj)
{
VALUE ary = rb_ary_new();
- rb_block_call(obj, id_each, argc, argv, collect_all, ary);
return ary;
}