Skip to content

Commit

Permalink
fix public_methods(false)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Jun 17, 2016
1 parent a8af43f commit 8764bd2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
/*
Expand Down

0 comments on commit 8764bd2

Please sign in to comment.