From: Josh Cheek Date: 2010-06-28T13:56:13+09:00 Subject: Re: how i execute a method variable numer of times --0016e6d7e0406da5b8048a0ff014 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Jun 27, 2010 at 11:48 PM, Noose Dinli wrote: > hi ruby > > example i have this method: > > def little_meth > puts "hi there\n" > end > > and say i want to run this method run x number of times. > > i make program that looks something this way: > > do > little_meth > x times > > i request what is this for ruby? > > thanks > > -noose > -- > Posted via http://www.ruby-forum.com/. > > def little_meth puts "hi there\n" end x = 10 # either of these will work x.times { little_meth } x.times do little_meth end --0016e6d7e0406da5b8048a0ff014--