From: Robert Dober Date: 2006-08-02T21:28:28+09:00 Subject: Re: crontab.rb:117: warning: tried to create Proc object without a block ------=_Part_69809_7732114.1154521705266 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 8/2/06, Une b=E9vue wrote: > > with crontab.rb:117: > > i get a warning: tried to create Proc object without a block > > line 117 being : > job =3D proc if iterator? > > what could I change to avoid this warning ??? > -- > une b=E9vue > > Do you want the proc object of the given block? In that case I know only one method def whatever(*args, &blk) job =3D blk if blk # Do something with job end Hope that helps Robert --=20 Deux choses sont infinies : l'univers et la b=EAtise humaine ; en ce qui concerne l'univers, je n'en ai pas acquis la certitude absolue. - Albert Einstein ------=_Part_69809_7732114.1154521705266--