From: Kevin Solorio Date: 2009-11-19T06:12:11+09:00 Subject: Re: Ruby/tk Help Please --000e0ce0cd7868686a0478abb037 Content-Type: text/plain; charset=ISO-8859-1 You are not going to need the join method. The puts method automatically creates a new line. @list2.each { | e | puts e*result} On Wed, Nov 18, 2009 at 4:02 PM, Sean Ob wrote: > In fact, I probably wouldn't write it like this. I'd probably do > @list2.collect {|e| e * result}.join "\n" > does this mean "take each element of @list2 and multiply it by result, > then print the collection and insert a new line between each element but > not on either end" > or does it include the ends? > or am i way off? > ....experimenting ..... > -- > Posted via http://www.ruby-forum.com/. > > -- Kevin Solorio 314-623-2559 --000e0ce0cd7868686a0478abb037--