On Thu, Feb 19, 2009 at 3:41 PM, Ashikali Ashikali <ashikali.m / gmail.com>wrote:

> Analyse this code
>
> a = 10
> b = "This is #{a}" # prints "This is 10"
> b = 'This is #{c}' # prints "This is \#{c}"
> c = 18
>
> b # "This is \#{c}"
>
> Here I want ,
> "This is 18"
>
> Question ,
> How can I convert '' value to "" value .
> --
> Posted via http://www.ruby-forum.com/.
>

Your question is not clear

Changing a ' to a " is as simple as typing a different character.
In your example you are typing a string literal so typing it differently
should get you the results you're looking for.

If you're working on another string, you can do: <string>.gsub(/'/, '"')

Andrew Timberlake
http://ramblingsonrails.com
http://www.linkedin.com/in/andrewtimberlake

"I have never let my schooling interfere with my education" - Mark Twain