From: Andrew Timberlake Date: 2009-02-19T23:09:05+09:00 Subject: Re: Replacing values --001636c5b0a311f23c0463461503 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Thu, Feb 19, 2009 at 3:41 PM, Ashikali Ashikali 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: .gsub(/'/, '"') Andrew Timberlake http://ramblingsonrails.com http://www.linkedin.com/in/andrewtimberlake "I have never let my schooling interfere with my education" - Mark Twain --001636c5b0a311f23c0463461503--