In Ruby, I see that it can be useful to put classes inside modules for namespacing. I also see that it's possible to put moduldes inside classes. But I don't see why you'd do that.
Modules are generally mixed into classes, right? So what would be the purpose of defining a module inside a class?
(I also notice that Googling "ruby 'module inside a class'" gets 3 results, whereas "ruby 'class inside a module'" gets more than 18,000, so maybe the answer is "nobody does this"?)