On Mon, Aug 13, 2012 at 04:35:00PM +0900, John Doe wrote:
> Thanks for the quick reply. I guess what I really want is an object
> within an object so I can still make calls like:
> 
> object.namespace1.method_a
> 
> in other words:
> 
> object1.object2.method_a
> 
> class Object1
>   def object2
>     Object2.new
>   end
> end
> 
> class Object2
>   def method_a
>   end
> end
> 
> object1 = Object1.new
> object1.object2.method_a
> 
> And that seems to work :) Thanks again for the help!!

Why not use modules as namespaces?

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]