From: Lyle Johnson Date: 2008-06-11T07:36:39+09:00 Subject: Re: C++ 2 Ruby On Tue, Jun 10, 2008 at 4:49 PM, Jed Kowalski wrote: > how can I print a string and a variable in one line ? > i.e. > > drinks[i].namea() > puts ": ", drinks[i].buy() > > > the output will be: > > Sprite > : > 0 > > and I would like to have: > Sprite: 0 puts "#{drinks[i].namea}: #{drinks[i].buy}"