summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-09 12:34:35 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-09 12:34:35 +0000
commit0c0881d517160f5095518c84d99e2429f6eb2b41 (patch)
tree2c5894f55fb6bc7ad1f016b4cee2542bb8783204 /array.c
parent86adfd03ebb11340ef495e4c7b1265429308da62 (diff)
Array#reject too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/array.c b/array.c
index ade9007..f174817 100644
--- a/array.c
+++ b/array.c
@@ -2066,6 +2066,7 @@ static VALUE
rb_ary_reject(ary)
VALUE ary;
{
+ RETURN_ENUMERATOR(ary, 0, 0);
ary = rb_ary_dup(ary);
rb_ary_reject_bang(ary);
return ary;