How do I get the list of all classes that are defined in a module
(from inside a Ruby program)?
My current solution is using ObjectSpace.each_object(Class), which
gets every class defined in the whole program, but then I have to
filter it to get just the classes in a particular module, and this
doesn’t seem like the right way of doing it.