From: Gregory Brown Date: 2007-06-22T04:01:27+09:00 Subject: Re: undefined method 'a=' when initializing an object On 6/21/07, Bala Paranj wrote: > When I run eval("obj.#{a} = #{value}"), I get the undefined method > 'a=' error message. Please help. TIA. Please do not use eval() unless you have a good reason to! It's very dangerous if you're not careful. What you're looking for is: obj.send("#{a}=", value) Still, you're going to need to show more code for people to be able to help you. Where is a being defined, what is obj?