Module M
Class C
end
end
What I need is something like:
M.was_defined_here?(M::C)
M.classes.include?(M::C)
Does this exists somehow?
I know I could parse M::C.name. But someebody could have the idea to change Module#name, to make it more astetic or something. I want a clean solution.