From: jim o Date: 2007-05-18T23:26:27+09:00 Subject: Re: Beginner question I guess I did not ask my question very clearly. Sorry about that. What does the "#{ }" do for you? I think what I am missing is the feature provided by having that as a wrapper vs bare. Does that make sense? Thanks Jim ----- Original Message ---- From: Felipe Contreras To: ruby-talk ML Sent: Friday, May 18, 2007 9:20:19 AM Subject: Re: Begineer question On 5/18/07, jim o wrote: > I have had a horrible time googling this as I get too many hits back that don't apply. > > > > I am new to Ruby, and trying to find a good ref as for when one would use the form > > > > puts #{a} > > vs > puts a > > Does anyone have any pointers? You mean: puts "#{a}" Right? If so then it simply helps to do: puts "foo=#{a} allows you to do more interesting things" If you just want to print 'a' then there's no reason to do "#{a}" it would be like doing "%s" % [a]; you can do it, but it doesn't make sense. -- Felipe Contreras ____________________________________________________________________________________Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545433