Daniel Liebig wrote: > Farrel Lifson wrote: > >> On 12/06/07, Daniel Liebig <daniel.liebig / wevin.de> wrote: >[..] >> def assign_parmas(params) >> params.each {|key,variable| instance_variable_set("@{key}",value)} >> end > > > Thank you both! > > Do you know if instance_variable_set() behaves different or is more > performant in any way than eval()? Found the answer myself: with instance_variable_set the variable remains it's type (which is actually much better!), the eval() version casts it to string. > Or is it just better readable code? > >> >> Farrel >>