Subject: Re: strings embedded inside strings
From: Ed Sinjiashvili <edsin@ e s e r
Date: Wed, 20 Feb 2002 17:43:55 +0900
References: 34304
In-reply-to: Paul Brannan's message of "Wed, 20 Feb 2002 06:02:44 +0900"
Paul Brannan <paul / atdesk.com> writes:
> I've seen this on the ML before, but searching the ruby-talk archives I
> don't see a good answer.
>
> I want to do this:
>
> puts "#{"'"}"
>
You may try to escape '"':
puts "#{\"'\"}"
--Ed