Closed ratovia closed 3 years ago
Looks good, but I think it's better if both are allowed. Since the implementation already allows that, you could just add another test to make sure strings are also supported. And +1 to update the docs.
That works by "mistake" today and I prefer if we don't advertise it. I'll merge this as-is
I think that in most cases the target klass is not defined in a file that uses inject_into_class. So it is more friendly to set the default comment to string type. as-is
to-be
I think it's more realistic for test specs to delete the empty class definition in the first line. Also about the inject_into_module.