diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-14 14:02:33 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-14 14:02:33 +0000 |
commit | bacadbe9bfae2a9183934c08baaaefdec6d8dafe (patch) | |
tree | 92b56bb542054c36b41a0f4b8ae4bfb58b47319b /proc.c | |
parent | 452f46b751a93a97fe42febebe8e8d5241752475 (diff) |
proc.c: infect inspect result
* proc.c (method_inspect): the result should be infected by the
object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2524,6 +2524,7 @@ method_inspect(VALUE method) TypedData_Get_Struct(method, struct METHOD, &method_data_type, data); str = rb_str_buf_new2("#<"); + OBJ_INFECT_RAW(str, method); s = rb_obj_classname(method); rb_str_buf_cat2(str, s); rb_str_buf_cat2(str, ": "); |