From: Tachikoma Date: 2008-07-20T10:54:47+09:00 Subject: Re: repeat a method inside a string On Jul 20, 3:44 am, Zoe Phoenix wrote: > I have a method that will generate a random HTML link, but I need to > have it repeat inside a string interpolation.  I need to generate a > number of random links at the bottom of HTML pages that are being > generated.  I know how to insert the method into the string so it > inserts a random link there, but I don't know how to get it to insert 30 > different links instead of just one. > > Inside the HTML, it looks like this to just insert one link: > > ######## > .. >
> .. > ######## > > What I don't know how to do is to get it to do the insertlink method 30 > times in that spot instead of just once. Help, please..? > -- > Posted viahttp://www.ruby-forum.com/. you may use string * 30 to repeat the string 30 times