It seems that if I execute a script using mod_ruby, I cannot call
functions in modules that I write. Here's a quick example:
SCRIPT1.RBX:
require "script2.rbx"
TestMod::test()
SCRIPT2.RBX
module TestMod
def TestMod::test()
print("test")
end
end
Using the ruby command-line interpreter, the code above works just fine.
But under mod_ruby, I get an error along the lines of "TestMod::test
is not a function of TestMod."
It seems like, although script1.rbx can load script2.rbx properly, it
can't see the module TestMod, or it can't see functions of it.
Why is that?
Sean