summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-01 09:42:38 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-01 09:42:38 +0000
commit5e6634ce67281e7142e61fa5ba18265ff894c9e5 (patch)
tree2e4f554d0934713e09fe4c4cc9ddd3b48a9dee2f /enum.c
parent2b98e10419af64787e8fd9ab5c0ff9ece7d23c50 (diff)
* parse.y (tokadd_string): ignore backslashed spaces in %w.
* enum.c (enum_find): do not use rb_eval_cmd(); should not accept a string for if_none. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enum.c b/enum.c
index f426bc3303..c8831fb7b9 100644
--- a/enum.c
+++ b/enum.c
@@ -90,7 +90,7 @@ enum_find(argc, argv, obj)
}
rb_gc_force_recycle((VALUE)memo);
if (!NIL_P(if_none)) {
- rb_eval_cmd(if_none, rb_ary_new2(0), 0);
+ return rb_funcall(if_none, rb_intern("call"), 0, 0);
}
return Qnil;
}