Suppose I make a module as follows:
m = Module.new do
class C
end
end
Three questions:
Other than a reference to
m
, is there a way I can accessC
and other things insidem
?Can I give a name to the anonymous module after I've created it (just as if I'd typed "module ...")?
How do I delete the anonymous module when I'm done with it, such that the constants it defines are no longer present?