u can try this
@re = "this".gsub("this","'this'")
puts @re
Thanks
seenuOn Wed, Jan 13, 2010 at 12:47 PM, Conrad Taylor <[email protected]> wrote: > On Tue, Jan 12, 2010 at 11:11 PM, [email protected] <[email protected] > > wrote: > >> Really basic question. >> >> How can I convert "this" to 'this' >> >> convert from a double quotes string to a single quotes string. >> >> > For what purpose? > > -Conrad > > >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<rubyonrails-talk%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> >> >> > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

