I’m having a really tough time with Ruby’s scope (modules, include,
I had a file, in short:
def setup; C.blah; end
However, if I wrap the unit tests in their own module, then ruby can
no longer find class C. Why? Didn’t I include module M? I’m really
If you want the full source, I can post it.
PS If you could also direct me to a good link explaining this stuff, I’d
really appreciate it. I have to say that I don’t know Ruby’s exact
definition of a module. I know it is a namespace, but it seems to be
more than that (as evidenced by the fact that it has methods, and can be
mixedin, and the like).