From 8d81bcd71fc31b53fcc914f401394c22bbc2fac3 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 17 Dec 2007 23:01:50 +0000 Subject: * proc.c (rb_obj_public_method): Object#public_method to retrieve public method object. * proc.c (rb_mod_public_instance_method): Module#public_instance_method to retrieve public instance method from class / module. * proc.c (mnew): visibility check added. * eval_error.ci (rb_print_undef): add rb_ prefix. * eval_error.ci (rb_print_undef): add visibility in the error message. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval_method.ci | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eval_method.ci') diff --git a/eval_method.ci b/eval_method.ci index 8ebe252ee..94b39f04b 100644 --- a/eval_method.ci +++ b/eval_method.ci @@ -385,7 +385,7 @@ rb_export_method(VALUE klass, ID name, ID noex) fbody = search_method(rb_cObject, name, &origin); } if (!fbody || !fbody->nd_body) { - print_undef(klass, name); + rb_print_undef(klass, name, 0); } if (fbody->nd_body->nd_noex != noex) { if (klass == origin) { @@ -573,7 +573,7 @@ rb_alias(VALUE klass, ID name, ID def) } } if (!orig_fbody || !orig_fbody->nd_body) { - print_undef(klass, def); + rb_print_undef(klass, def, 0); } if (FL_TEST(klass, FL_SINGLETON)) { singleton = rb_iv_get(klass, "__attached__"); -- cgit