Skip to content

Commit cc52fa6

Browse files
committed
Remove module only methods from class
The `#prepend_features` and `#module_function` methods are not haves for class objects.
1 parent 6c5ee8f commit cc52fa6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/class.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2323,7 +2323,9 @@ mrb_init_class(mrb_state *mrb)
23232323
mrb_define_method(mrb, mod, "dup", mrb_mod_dup, MRB_ARGS_NONE());
23242324

23252325
mrb_undef_method(mrb, cls, "append_features");
2326+
mrb_undef_method(mrb, cls, "prepend_features");
23262327
mrb_undef_method(mrb, cls, "extend_object");
2328+
mrb_undef_method(mrb, cls, "module_function");
23272329

23282330
mrb->top_self = (struct RObject*)mrb_obj_alloc(mrb, MRB_TT_OBJECT, mrb->object_class);
23292331
mrb_define_singleton_method(mrb, mrb->top_self, "inspect", inspect_main, MRB_ARGS_NONE());

0 commit comments

Comments
 (0)