From: John Ky Date: 2006-10-09T21:49:26+09:00 Subject: Re: Shortcut for nested modules Hi Austin, This code doesn't work either: > module A; module B; module C > end; end; end > > module A::B::C::D > def D.f > end > end testns.rb:5: uninitialized constant A::B::C::D::D (NameError) Thanks -John On 10/9/06, Austin Ziegler wrote: > > The following doesn't work for me: > > > > > module A::B::C::D > > > def D.f > > > end > > > end > > That will work if A::B::C exist.