diff --git a/eval.c b/eval.c index e6a695581f..55e5dd6f1d 100644 --- a/eval.c +++ b/eval.c @@ -1815,6 +1815,8 @@ is_defined(self, node, buf) !rb_obj_is_kind_of(self, rb_class_real(val))) break; } + else if (!rb_method_boundp(val, node->nd_mid, call)) + break; return arg_defined(self, node->nd_args, buf, "method"); } break;