diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-27 07:46:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-27 07:46:54 +0000 |
commit | 8634544fa74be0995582bc8056763fcfd38a0702 (patch) | |
tree | b3648c4abc78ff82a364680a83a0e076c9fa32e8 /vm_method.c | |
parent | f4d2374b45bf893b5adf34470e9f20d55143c5ac (diff) | |
download | ruby-8634544fa74be0995582bc8056763fcfd38a0702.tar.gz |
name of klass
* vm_method.c (rb_method_entry_make): use name of klass explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c index 6bf3c434ca..c9f0130512 100644 --- a/vm_method.c +++ b/vm_method.c @@ -205,7 +205,7 @@ rb_method_entry_make(VALUE klass, ID mid, rb_method_type_t type, #if NOEX_NOREDEF if (old_me->flag & NOEX_NOREDEF) { rb_raise(rb_eTypeError, "cannot redefine %"PRIsVALUE"#%"PRIsVALUE, - klass, rb_id2str(mid)); + rb_class_name(klass), rb_id2str(mid)); } #endif rb_vm_check_redefinition_opt_method(old_me, klass); |