should print SCLASS as modules and classes

parent 0f6c1a03
......@@ -1223,6 +1223,7 @@ mrb_mod_to_s(mrb_state *mrb, mrb_value klass)
switch (mrb_type(v)) {
case MRB_TT_CLASS:
case MRB_TT_MODULE:
case MRB_TT_SCLASS:
mrb_str_append(mrb, s, mrb_inspect(mrb, v));
break;
default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment