From 476a539ff6a22db1bdd565d7e64b57ad04bc841b Mon Sep 17 00:00:00 2001 From: a_matsuda Date: Tue, 12 Dec 2017 12:12:38 +0000 Subject: Add Method#=== that invokes #call Patch by osyo via [Feature #14142] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- proc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'proc.c') diff --git a/proc.c b/proc.c index ff862bee97..9dbc78ae4a 100644 --- a/proc.c +++ b/proc.c @@ -3124,6 +3124,7 @@ Init_Proc(void) rb_define_method(rb_cMethod, "hash", method_hash, 0); rb_define_method(rb_cMethod, "clone", method_clone, 0); rb_define_method(rb_cMethod, "call", rb_method_call, -1); + rb_define_method(rb_cMethod, "===", rb_method_call, -1); rb_define_method(rb_cMethod, "curry", rb_method_curry, -1); rb_define_method(rb_cMethod, "[]", rb_method_call, -1); rb_define_method(rb_cMethod, "arity", method_arity_m, 0); -- cgit v1.2.3