diff options
| author | dearblue <[email protected]> | 2019-12-14 22:04:44 +0900 |
|---|---|---|
| committer | dearblue <[email protected]> | 2019-12-14 22:12:32 +0900 |
| commit | cc52fa66e8c12be2b6bbe3c7fd850ea0b2beb0c1 (patch) | |
| tree | ff9d0e83ecee075da979d798d910bb582675b123 /src | |
| parent | 6c5ee8f79e430354fe7e569553bda2d6f79b7aee (diff) | |
| download | mruby-cc52fa66e8c12be2b6bbe3c7fd850ea0b2beb0c1.tar.gz mruby-cc52fa66e8c12be2b6bbe3c7fd850ea0b2beb0c1.zip | |
Remove module only methods from class
The `#prepend_features` and `#module_function` methods are not haves for
class objects.
Diffstat (limited to 'src')
| -rw-r--r-- | src/class.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/class.c b/src/class.c index e0196fe0a..0da572b0e 100644 --- a/src/class.c +++ b/src/class.c @@ -2323,7 +2323,9 @@ mrb_init_class(mrb_state *mrb) mrb_define_method(mrb, mod, "dup", mrb_mod_dup, MRB_ARGS_NONE()); mrb_undef_method(mrb, cls, "append_features"); + mrb_undef_method(mrb, cls, "prepend_features"); mrb_undef_method(mrb, cls, "extend_object"); + mrb_undef_method(mrb, cls, "module_function"); mrb->top_self = (struct RObject*)mrb_obj_alloc(mrb, MRB_TT_OBJECT, mrb->object_class); mrb_define_singleton_method(mrb, mrb->top_self, "inspect", inspect_main, MRB_ARGS_NONE()); |
