From: Matthew Kerwin Date: 2012-12-08T08:48:35+09:00 Subject: Re: strange syntax error on rename --047d7b338dd36e366504d04bd3ce Content-Type: text/plain; charset=ISO-8859-1 There's a space between rename and the parenthesis, which is unexpected. Usually we just leave the parens off method calls in ruby. Sent from my phone, so excuse the typos. On Dec 8, 2012 9:30 AM, "peteV" wrote: > On 12/07/2012 05:17 PM, peteV wrote: > >> >> >> File.rename ( "#{file}","#{tag.title}-#{tag.**artist}.mp3") >> >> end # File is automatically closed at block end >> >> ------------------------------**------------------------------**------------------ >> >> here is the error dump >> ./taglibex.rb:15: syntax error, unexpected ',', expecting ')' >> File.rename ( "#{file}","#{tag.title}-#{tag.**artist}.mp3") >> ^ >> ./taglibex.rb:15: syntax error, unexpected ')', expecting keyword_end >> >> >> >> of course the error dump needed to contain the "#{tag.title}" :-[ > I had copied a previous error dump by mistake from the cmd line > > > --047d7b338dd36e366504d04bd3ce Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

There's a space between rename and the parenthesis, which is unexpec= ted. Usually we just leave the parens off method calls in ruby.

Sent from my phone, so excuse the typos.

On Dec 8, 2012 9:30 AM, "peteV" <pete0verse@gmail.com> wrote:
On 12/07/2012 05:17 PM, peteV wrote:


=A0 File.rename ( "#{file}","#{tag.title}-#{tag.artis= t}.mp3")

end =A0# File is automatically closed at block end

-------------------------------------------------------------= -----------------
here is the error dump
./taglibex.rb:15: syntax error, unexpected ',', expecting ')= 9;
=A0 File.rename ( "#{file}","#{tag.title}-#{tag.artis= t}.mp3")
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^
./taglibex.rb:15: syntax error, unexpected ')', expecting keyword_e= nd



of course the error dump needed to contain the "#{tag.title}" :-[=
I had copied a previous error dump by mistake from the cmd line


--047d7b338dd36e366504d04bd3ce--