From: matt@... (matt neuburg) Date: 2006-10-27T06:00:21+09:00 Subject: newbie q on class Foo::Bar What's the point of a class-within-a-class? For example, I take it that I can say: class Foo class Bar def whatever ... And then I can say my_foo_bar = Foo::Bar.new For example, isn't that what something like File::Stat is? My question is, am I right about this, and if so, what's the point of doing so? I take it that Bar is not magically related to Foo - it can't see Foo's methods or anything like that, can it? So is this merely a way of using a class (Foo) as a namespace so that related classes (like Bar) are all in one place? Thx - m. -- matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ Tiger - http://www.takecontrolbooks.com/tiger-customizing.html AppleScript - http://www.amazon.com/gp/product/0596102119 Read TidBITS! It's free and smart. http://www.tidbits.com