From: ts Date: 2002-08-05T19:37:50+09:00 Subject: Re: Dynamic creation of classes and methods >>>>> "T" == Tomasz Wegrzanowski writes: T> What I want is creation of constants at first request, Use begin ... rescue pigeon% ruby module Foo end begin p Foo::Bar.new rescue NameError Foo.const_set("Bar", Class.new) retry end ^D # pigeon% and add the appropriate test to make it work cleanly. Guy Decoux