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:
parent
9c24ce551d
commit
7cc1cd3d1e
Notes:
git
2019-10-11 11:20:34 +09:00
1 changed files with 1 additions and 1 deletions
2
proc.c
2
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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue