summaryrefslogtreecommitdiffstats
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
commita544c0bc23352d2c09a02df807c0e5ce2e6e0647 (patch)
tree2e4f554d0934713e09fe4c4cc9ddd3b48a9dee2f /enum.c
parent2927a4d35e8ba874e543de8a1b4ebfbf9f608226 (diff)
downloadruby-a544c0bc23352d2c09a02df807c0e5ce2e6e0647.tar.gz
ruby-a544c0bc23352d2c09a02df807c0e5ce2e6e0647.tar.xz
ruby-a544c0bc23352d2c09a02df807c0e5ce2e6e0647.zip
* 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: http://svn.ruby-lang.org/repos/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 f426bc330..c8831fb7b 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;
}