…rything needs to be refactored, though)
For example, the Struct class.
In general, returning nil seems better than a bug exception for unexpected NODE types.
Update the gemspec accordingly.
We now go under the hood for class names, so overriding #name or #to_s won't affect us either.
Currently only MRI.
Singleton class names aren't displayed correctly. Need to add this to the adapters rather than relying on Module#to_s anyway.
Use a TestAdapter instead of stubbing in unit tests.
Module#*_instance_methods(false) gives more than just the methods on that class for class singletons. Reaching into the internals seems the simplest reliable way.
* 1.8.6 does not define RCLASS_* macros. * RSpec mixes InstanceExecHelper into Object under 1.8.6. * 1.8.6 formats %x differently when negative. * String#lines not defined.
More forward compatible.