From 8764bd282c346cec3581e380b9a20a1761cba059 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Sat, 18 Jun 2016 01:12:41 +0900 Subject: fix public_methods(false) --- src/kernel.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/kernel.c b/src/kernel.c index af6a49be1..54b5f23b6 100644 --- a/src/kernel.c +++ b/src/kernel.c @@ -722,9 +722,7 @@ mrb_obj_singleton_methods(mrb_state *mrb, mrb_bool recur, mrb_value obj) static mrb_value mrb_obj_methods(mrb_state *mrb, mrb_bool recur, mrb_value obj, mrb_method_flag_t flag) { - if (recur) - return mrb_class_instance_method_list(mrb, recur, mrb_class(mrb, obj), 0); - return mrb_obj_singleton_methods(mrb, recur, obj); + return mrb_class_instance_method_list(mrb, recur, mrb_class(mrb, obj), 0); } /* 15.3.1.3.31 */ /* -- cgit v1.2.3