From: Andy Dbest Date: 2008-06-08T23:27:48+09:00 Subject: Re: Search File Contents Stefano Crocco wrote: > On Sunday 08 June 2008, Andy Dbest wrote: > If assiging week_num a value inside the method makes the code work, I'd > say > the problem is in the argument which is passed to the method. Have you > tried > to put a > > puts week_num > > at the beginning of the method, to see whether the argument you get is > the one > you expect? > > Stefano I tried the puts line, just inside the method and it does return '1.' for me. It kind of annoying... -- Posted via http://www.ruby-forum.com/.