From: Andrew Libby Date: 2006-10-23T21:43:04+09:00 Subject: creating objects type only known at runtime This weekend I was playing around with some ruby and wanted to create objects whose types were only known at runtime. The method I wound up using was o = eval "#{class_name}.new" Is this a preferred method. I come from (mostly) a perl background, but also a Java background. To me this approach seems inelegant. Thanks for any input. Andy -- Andrew Libby Tangeis, LLC Innovative IT Management Solutions alibby@tangeis.com