From: Andrew Stewart Date: 2007-03-08T21:19:36+09:00 Subject: Re: How To Find The Name Of A Variable Hi Jens, On 8 Mar 2007, at 12:17, jens wille wrote: > itain [08/03/07 13:09]: >> then you can just do >> >> if line_item_relevant :line_item_shirt > or you could use that method call to retrieve your instance variable: > > line_item = instance_variable_get(:"@#{symbol}") Aha! I like that too! Thanks for the suggestion, Andy