From: Paul Brennan Date: 2012-08-13T20:10:44+09:00 Subject: Re: meaning of @variable@? Paul Brennan wrote in post #1072189: > Because it's a string, and in single quotes, surely it would be taken > literally and any instance of @vraiable@ in aaa would be replaced with > whatever is in the current variable > > Yule; what is that '@' in both ends? Just that, an @ character. So aaa = 'This is a string @variable@ blah blah blah' current = 'XXXX aaa.gsub!('@variable@', current) aaa ==> 'This is a string XXXX blah blah blah' -- Posted via http://www.ruby-forum.com/.