Hi Jens!

On 8 Mar 2007, at 12:17, jens wille wrote:
> or you could use that method call to retrieve your instance variable:
>
>   line_item = instance_variable_get(:"@#{symbol}")

This works perfectly for me (omitting the colon) with minimal change  
to my code.

I was trying to go from @foo to :foo.  It never crossed my mind to  
try the reverse, i.e. from :foo to @foo.

I suppose that's an example of James Edward Grey II's favourite  
dictum, "If all else fails, reverse the data."

Thanks again!
Andy