From: skim Date: 2010-07-15T00:21:25+09:00 Subject: Re: Modules in Ruby --000feaf10a4addb014048b5a89f8 Content-Type: text/plain; charset=ISO-8859-1 In your private pastie, you have GOODMOOD, not GOODMOODE. I think this could be why. Accessing MyModule::GOODMOOD worked. On Wed, Jul 14, 2010 at 09:45, Abder-Rahman Ali wrote: > A small thing here: > > When I type: > > puts MyModule::GOODMOODE > > In the purpose of accessing a module's constant, I get the following: > > uninitialized constant MyModule::GOODMOODE (NameError) > > Although having the include. > > How can I access a module's constant. > > And, when reading about modules, the resources I saw so far mention that > modules includes: > > 1- Constants. > 2- Methods. > 3- Classes. > > Don't they include variables?! > > Thanks. > > -- > Posted via http://www.ruby-forum.com/. > > --000feaf10a4addb014048b5a89f8--