1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Module#define_method: Add UnboundMethod to expected classes

This commit is contained in:
ksss 2016-10-24 11:42:31 +09:00 committed by 卜部昌平
parent 9c24ce551d
commit 7cc1cd3d1e
Notes: git 2019-10-11 11:20:34 +09:00

2
proc.c
View file

@ -2068,7 +2068,7 @@ rb_mod_define_method(int argc, VALUE *argv, VALUE mod)
}
else {
rb_raise(rb_eTypeError,
"wrong argument type %s (expected Proc/Method)",
"wrong argument type %s (expected Proc/Method/UnboundMethod)",
rb_obj_classname(body));
}
}