From: Tomasz Wegrzanowski Date: 2002-08-05T19:27:53+09:00 Subject: Re: Dynamic creation of classes and methods On Mon, Aug 05, 2002 at 05:51:58PM +0900, ts wrote: > >>>>> "T" == Tomasz Wegrzanowski writes: > > T> Where does this message come from and how can I overload this: > T> NameError: uninitialized constant Bar at Foo > > The constant Foo::Bar don't exist > > > pigeon% ruby -e 'module Foo Bar = Class.new; end; p Foo::Bar.new' > # > pigeon% I mean not just for one Bar, for any Bar. What I want is creation of constants at first request, the same way I can create methods with method_missing.