From: kgoblin@... Date: 2006-03-02T01:33:38+09:00 Subject: Re: Create named objects Roland Schmitt wrote: > Hello, > > want to do the following: > > name = "input" > clazz = "String" > value = "test" > > <<>> > > puts(input) -> "test" > input.class() -> String > > > Thanks in advance, > > Roland a pretty straight forward way is to just use the eval function on a string # in your insert magic here: evs = "#{name} = #{clazz}.new( #{value} )" eval( evs )