From: Dave Aronson Date: 2013-03-29T01:07:57+09:00 Subject: Re: undefined local variable or method 'math' On Thu, Mar 28, 2013 at 10:56 AM, Robert Klemme wrote: > That is not necessarily true: > > 1. You can assign a class / module to a local variable or wrap it in a > method call. ... > 2. Classes and modules do not even have to have names: Well, yeah, but I was trying to present the common/general case, so as not to overwhelm Don with tricks he doesn't need yet. So, Don, if you're still reading: When you do: module Foo ... end or class Bar ... end the Foo and Bar parts are supposed to be constants. (I think Ruby will even complain if they aren't.) As Robert points out, there are other ways to access modules and classes and other such things that usually have constants for names when defined in the usual way... but those are stories for another day. :-) -Dave -- Dave Aronson, the T. Rex of Codosaurus LLC, secret-cleared freelance software developer taking contracts in or near NoVa or remote. See information at http://www.Codosaur.us/.