From: botp Date: 2013-01-21T16:15:16+09:00 Subject: Re: question about string concatenation --047d7b6d88b0f328dc04d3c7388f Content-Type: text/plain; charset=UTF-8 On Mon, Jan 21, 2013 at 3:00 PM, Robert Klemme wrote: > You do not need .to_s inside string interpolation. But what is the > point in suggesting that over this solution? > > s = "[#{9}]" > sorry for the confusion, robert. i just wanted to show how to combine auto or implied concat w another expression (the to_s was just an example given by op.. could be any method that returns string).. best regards -botp --047d7b6d88b0f328dc04d3c7388f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Mon, Jan 21, 2013 at 3:00 PM, Robert = Klemme <shortcutter@googlemail.com> wrote:
You do not need .to_s inside string interpol= ation. =C2=A0But what is the
point in suggesting that over this solution?

s =3D "[#{9}]"

sorry for the confusion, robert. =C2= =A0i just wanted to show how to combine auto or implied concat =C2=A0w anot= her expression (the to_s was just an example given by op.. could be any met= hod that returns string)..

best regards -botp


<= /div> --047d7b6d88b0f328dc04d3c7388f--