i like the last one best for it’s debugging, testing, and caching
capabilities… any method which creates a class dynamically is hard to test -
this way you could test any of the created classes using the cached libs…
-a
···
On Sat, 14 Jun 2003, Markus Jais wrote:
hello
I would like to create classes dynamically and also the name of the class
somethink like that
cl = Class.new(“Eagle”) # does not work
bird = Eagle.new
bird.fly()
can this be done ? I want many classes to be created and the names come from
config files or the command line
–
Ara Howard
NOAA Forecast Systems Laboratory
Information and Technology Services
Data Systems Group
R/FST 325 Broadway
Boulder, CO 80305-3328
Email: ara.t.howard@noaa.gov
Phone: 303-497-7238
Fax: 303-497-7259
~ > ruby -e ‘p(%.\x2d\x29…intern)’
====================================