Well, don't quote me technically, since I am not a technical person, I know what I am saying and doing, just not from a technical standpoint.
Constants are variables, so just like variables, they aren't initialized, the objects are. Variables are actually just pointers to objects in the memory.
What I said was classes have to be created, like
window = Window_Item.new
window.refresh
Where modules are simply
Just sit back and think for a moment. You never go
since the object is already created as a constant.
Think of it as this:
class Your_Module
def some_method
end
end
THIS_IS_A_MODULE = Your_Module.new
That's kind what happens when you create a module to my understanding.
That's why you access constants and modules the same.
module Somemodule
Constant = 1
module Submodule
end
end
Somemodule::Constant
Somemodule::Submodule