From: Sebastian Hungerecker Date: 2009-01-02T04:07:22+09:00 Subject: Re: How do I pass the name of an instance variable into an object? Glenn wrote: > I think that this is because of the quotes around initial_value in this > line: > self.instance_variable_set("@#{name}", "#{initial_value}") > [...] > Do you think that there is any harm in leaving those quotes off? Not at all. The only reason for them to be there in the first place would be to convert the value to a string (though initial_value.to_s would be a more readable way to do the same thing, in my opinion). Since you don't want that, there is no downside to removing them. HTH, Sebastian -- Jabber: sepp2k@jabber.org ICQ: 205544826