In article <20020219160241.E4142 / atdesk.com>, 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 '. You might want to use %Q to change the quotes e.g. irb(main):001:0> puts %Q!#{"'"}! ' nil Whether you think that this is any cleaner than your solution using a variable I don't know, but you can do it. Hope this helps, Mike -- mike / stok.co.uk | The "`Stok' disclaimers" apply. http://www.stok.co.uk/~mike/ | GPG PGP Key 1024D/059913DA mike / starnix.com | Fingerprint 0570 71CD 6790 7C28 3D60 http://www.starnix.com/ | 75D2 9EC4 C1C0 0599 13DA