From: Mrmaster Mrmaster Date: 2009-09-18T05:36:20+09:00 Subject: Re: Value isn't appended in puts statement(appears on next line) Jes炭s Gabriel y Gal叩n wrote: > On Thu, Sep 17, 2009 at 10:16 PM, Mrmaster Mrmaster > wrote: >> Hi Gary, >> >> I tried it your way and it still gives me a new line. I think you still >> have to chomp it since the value returned is somedigit\n > > Sure, he was just pointing out that string interpolation is more > idiomatic than string concatenation for cases like this one. > > Jesus. Your right and sorry about that Gary. I misunderstood what you were trying to show me :). I deal with a lot of cases where values have to be inserted into sql statement and string interpolation is definitely a better and cleaner approach. -- Posted via http://www.ruby-forum.com/.