From: Eugen Ciur Date: 2010-08-04T17:45:03+09:00 Subject: Re: documenting string Thank you Brian, that is really what I was looking for ! On 08/04/2010 11:15 AM, Brian Candler wrote: > Ciur Eugen wrote: > >> Oh, indeed "instance variable"!! >> and #@something inside doc string it sees live "#{@something}"!!! >> Thank you very much, Bob, now understand! >> > And incidentally, you can change the semantics of heredocs to those of > single-quoted strings by single-quoting the terminator. e.g. > > def call_me > e =<<'SOME' > #@ > # this is a nice string! > # > SOME > e > end > > puts call_me > > (But this won't let you embed #{...} interpolation in your string > either) >