From: Dave Thomas Date: 2001-11-23T00:47:48+09:00 Subject: [ruby-talk:26144] Re: Passing class names to constructors. Hugh Sasse Staff Elec Eng writes: > class TangledRope > def initialize(knotclass = :Knot) > mess = Array.new() > (10*rand()).times do { > mess.push(knotclass.something.new()) If instead of passing in the symbol, you passed the class itself, you could just do: mess << Class.new(knotclass) Does the symbol buy you anything here? Dave