aboutsummaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
authorksss <co000ri@gmail.com>2016-10-24 11:42:31 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-10-11 11:20:11 +0900
commit7cc1cd3d1ed1d482ea2ec247fa6a4ad0f044418a (patch)
treea7af62718a2d7616313cf1cff323a9bc8070aa63 /proc.c
parent9c24ce551d19ac0f5cac4bc9ff5ef5a7a980909d (diff)
downloadruby-7cc1cd3d1ed1d482ea2ec247fa6a4ad0f044418a.tar.gz
Module#define_method: Add UnboundMethod to expected classes
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c2
1 files changed, 1 insertions, 1 deletions
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));
}
}