Reflection in Ruby. Instantiate an object by given class name
        Posted  
        
            by vooD
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by vooD
        
        
        
        Published on 2010-03-31T20:21:34Z
        Indexed on 
            2010/03/31
            20:43 UTC
        
        
        Read the original article
        Hit count: 143
        
ruby
|reflection
I came to ruby from PHP. How could i do the next thing in ruby?
$className = 'ArrayObject';
$arrayObject = new $className();
Thank you for any help!
© Stack Overflow or respective owner