diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-17 23:01:50 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-17 23:01:50 +0000 |
commit | 1281cb00e53d2a4425fc28c3f75dee48e8e7a2d3 (patch) | |
tree | 0ef783f01acbc6a5b1412888bd974b826494f58f /eval_method.ci | |
parent | 97591e82d9ba3b7204110302b52540007ff081a5 (diff) | |
download | ruby-1281cb00e53d2a4425fc28c3f75dee48e8e7a2d3.tar.gz |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@14284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_method.ci')
-rw-r--r-- | eval_method.ci | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eval_method.ci b/eval_method.ci index 8ebe252ee4..94b39f04b1 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__"); |