ruby-changes:58211
From: ksss <ko1@a...>
Date: Fri, 11 Oct 2019 11:20:27 +0900 (JST)
Subject: [ruby-changes:58211] 7cc1cd3d1e (master): Module#define_method: Add UnboundMethod to expected classes
https://git.ruby-lang.org/ruby.git/commit/?id=7cc1cd3d1e From 7cc1cd3d1ed1d482ea2ec247fa6a4ad0f044418a Mon Sep 17 00:00:00 2001 From: ksss <co000ri@g...> Date: Mon, 24 Oct 2016 11:42:31 +0900 Subject: Module#define_method: Add UnboundMethod to expected classes diff --git a/proc.c b/proc.c index 667b86a..ca6e671 100644 --- a/proc.c +++ b/proc.c @@ -2068,7 +2068,7 @@ rb_mod_define_method(int argc, VALUE *argv, VALUE mod) https://github.com/ruby/ruby/blob/trunk/proc.c#L2068 } else { rb_raise(rb_eTypeError, - "wrong argument type %s (expected Proc/Method)", + "wrong argument type %s (expected Proc/Method/UnboundMethod)", rb_obj_classname(body)); } } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/