From: Chris Hulan Date: 2013-05-08T20:38:54+09:00 Subject: Re: Problem with FileUtils move command. --001a11c253e49d7f1004dc3360b7 Content-Type: text/plain; charset=ISO-8859-1 how is the script invoked? the fact that your 'puts pdffile' is not showing anything is an indicator that the value is nil Could be a typo: the var that refers to the file is not actually 'pdffile'? or the script is not getting a file name on the command line? On Wed, May 8, 2013 at 7:14 AM, Peter Bailey wrote: > Joel Pearson wrote in post #1108209: > > "no implicit conversion of nil into String" means you're probably > > passing it a variable which contains nil. Inspect the variables that > > you're using on line 26. > > Thanks. The variable is "pdffile," which is defined 10 lines above this > line by "pdffile = ARGV[0]." > > I don't know what else to do here. I've put a "puts pdffile" right above > line 26, but, it doesn't even show when I run the script. > > -- > Posted via http://www.ruby-forum.com/. > > --001a11c253e49d7f1004dc3360b7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
how is the script invoked?
the fact that your &#= 39;puts pdffile' is not showing anything is an indicator that the=A0val= ue=A0is nil
Could be a typo: the var that refers to the fil= e is not actually 'pdffile'?
or the script is not getting a file name on the command line?




On Wed, May 8, 2013 at 7:14 AM, Peter= Bailey <lists@ruby-forum.com> wrote:
Joel Pearson wrote in post #1108209:
> "no implicit conversion of nil into String"= ; means you're probably
> passing it a variable which contains nil. Inspect the variables that > you're using on line 26.

Thanks. The variable is "pdffile," which is defined 10 line= s above this
line by "pdffile =3D ARGV[0]."

I don't know what else to do here. I've put a "puts pdffile&qu= ot; right above
line 26, but, it doesn't even show when I run the script.

--001a11c253e49d7f1004dc3360b7--