From 8634544fa74be0995582bc8056763fcfd38a0702 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 27 Jun 2012 07:46:54 +0000 Subject: [PATCH] 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 --- vm_method.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);