From: s@... (Stefan Schmiedl) Date: 2002-02-20T06:17:51+09:00 Subject: Re: strings embedded inside strings Paul, what about puts "'" ? why do you want/need the additional layer of indirection? s. On Tue, 19 Feb 2002 21:04:57 GMT, Paul Brannan wrote: > 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 "#{"'"}" > > It doesn't work, I think because ruby sees it as: > > puts '#{' '"}" > > and there is no closing '. > > I can work around ruby by doing: > > apostrophe = "'" > puts "#{apostrophe}" > > and perhaps it is cleaner. But is what I want to do a reasonable thing > to be able to do? Should Ruby allow me to do it? > > Paul >