Joel VanderWerf
4/3/2009 5:55:00 PM
ara.t.howard wrote:
>
> On Apr 2, 2009, at 4:48 PM, Joel VanderWerf wrote:
>
>> Is this how tagz.<< is supposed to work? It seems that << and #concat
>> behave differently w.r.t. entity quoting.
>
>
>
> correct. escape in the normal case (<<) but concat works directly
> without quoting.
Thanks. That seems a bit arbitrary since these methods are the same for
strings. It's something you just have to remember, but then forget when
you come back to the code after a while.
Would it be possible for the object returned by #tagz to have a method,
say #literally or #unescaped, which returns an object which delegates
back to the original. On the original Tagz::Document, #<< and #concat
have the same quoting behavior. On the delegator, they do not quote.
Just a thought...
--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407