Farrel Lifson wrote:
> On 12/06/07, Daniel Liebig <daniel.liebig / wevin.de> wrote:
> 
>>    def assign_params params
>>      params.each { | key, value | eval "@#{key} = '#{value}'" }
>>    end
> 
> 
> 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()?
Or is it just better readable code?

> 
> Farrel
>