[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Trouble parsing against a hash

James Gray

8/15/2006 2:37:00 PM

On Aug 15, 2006, at 9:27 AM, Cameron, Gemma (UK) wrote:

>
>> Right. But never use:
>>
>> "#{var}"
>
> I thought #{var} was used within quotes to get the value as
> otherwise you just get var...

Correct.

> var = "Hello Ruby Talk World"
> "I just wanted to say #{var}" -> I just wanted to say Hello Ruby
> Talk World
> "I just wanted to say var" -> I just wanted to say var
>
> or am I missing the point?

Nope you have it.

What I meant to say in my other message was if it is the *only* thing
in the String, it's pointless.

James Edward Gray II