From: ts Date: 2003-03-24T22:00:44+09:00 Subject: Re: dynamic class' name >>>>> "P" == Paul Argentoff writes: P> Can i use an arbitrary string (i.e. read from the config file) as a class' P> name to call it's new(), etc. knowing that i have that class' definition? a class name begin with a capital letter, this mean that it's a constant. Retrieve the constant (with const_get) and you have the class. For example pigeon% ruby -e 'p Object.const_get("Array").new' [] pigeon% pigeon% ruby -e 'p File.const_get("Stat").new("b.rb")' # pigeon% Guy Decoux