David Clements wrote: > Hey, > > I know I have seen his on the list before but I can't seem to find it. > > I want to do something like > > class_name = "UserPreference" > up = Class.class_for_name(class_name).new > > Anyone? > > Also, where would be a good place for me to find a reference for all the > very useful methods for Meta Programming? > ins and outs of const_get: http://groups.google.com/group/comp.lang.ruby/browse_frm/thread/49c924bbea4551f4/f502387ee9b458fe?hl=en#f502387ee9b458fe metap'g / DSL's: http://www.mail-archive.com/pdxruby / lists.pdxruby.org/msg00416.html http://jroller.com/page/obie?entry=the_magic_of_ruby_dsl http://jroller.com/page/obie?entry=dslish_ruby_hacks_the_as http://jroller.com/page/obie?entry=more_on_business_dsls_in http://redhanded.hobix.com/bits/evalLessMetaprogramming.html http://jamis.jamisbuck.org/articles/2006/04/20/writing-domain-specific-languages http://dppruby.com/dppsrubyplayground/files/Preso.ppt yah, itps powerpoint, but worth it to go find a win32 machine http://www.devsource.com/print_article2/0,1217,a=171834,00.asp