mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
bob doesn't have new so don't undef
This commit is contained in:
@@ -1873,7 +1873,6 @@ mrb_init_class(mrb_state *mrb)
|
||||
mrb_name_class(mrb, mod, mrb_intern(mrb, "Module"));
|
||||
mrb_name_class(mrb, cls, mrb_intern(mrb, "Class"));
|
||||
|
||||
mrb_undef_method(mrb, mod, "new");
|
||||
MRB_SET_INSTANCE_TT(cls, MRB_TT_CLASS);
|
||||
mrb_define_method(mrb, bob, "initialize", mrb_bob_init, MRB_ARGS_NONE());
|
||||
mrb_define_method(mrb, bob, "!", mrb_bob_not, MRB_ARGS_NONE());
|
||||
|
||||
Reference in New Issue
Block a user