* Paul Annesley <[email protected]> [2011-08-18 15:17:47 +1000]: > It hinges on Kernel.get_const(string)
* Samuel Richardson <[email protected]> [2011-08-18 15:19:19 +1000]: > mod.const_get(class_name) * Pat Allan <[email protected]> [2011-08-18 15:18:51 +1000]: > class_name = build_classname.constantize * Dmytrii Nagirniak <[email protected]> [2011-08-18 15:19:10 +1000]: > Kernel.const_get('A').new * Tommy Fotak <[email protected]> [2011-08-18 15:17:13 +1000]: > klass = Object.const_get(classname) Ahhh, *const_get*, I knew I'd read about it somewhere... Thanks everyone! Pat, constantize is also good - I usually include ActiveSupport in my non-Rails programs anyway, it has so much goodness :-) -- Sonia Hamilton http://soniahamilton.wordpress.com http://www.linkedin.com/in/soniahamilton -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
