From 7cc1cd3d1ed1d482ea2ec247fa6a4ad0f044418a Mon Sep 17 00:00:00 2001 From: ksss Date: Mon, 24 Oct 2016 11:42:31 +0900 Subject: [PATCH] Module#define_method: Add UnboundMethod to expected classes --- proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc.c b/proc.c index 667b86ac1b..ca6e671fd6 100644 --- a/proc.c +++ b/proc.c @@ -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)); } }