On Jun 25, 2009, at 18:25 , David A. Black wrote:

> There's absolutely nothing wrong with using here-documents. I would,
> however, normally avoid the double-barreled one (the one that the OP
> was asking about). It's quite clear what it does, once you know how
> here-docs work, but I don't like the two here-docs themselves in quick
> sequence like that, especially if they're longer (which they almost
> certainly would be). It would be a (minor) nuisance to have to parse
> the two of them visually to locate the first delimiter. I imagine
> there's always a somewhat clearer way.

don't say two... it isn't limited to two... it is N!

method <<-END1.kill, <<-END2.me, <<-ENDN.now!
    omg

        END1

  this

    END2

          _sucks_

                                                      ENDN

I wish I could say that wasn't valid ruby...

echo $GAH | parse_tree_show
s(:call,
  nil,
  :method,
  s(:arglist,
   s(:call, s(:str, "   omg \n\n"), :kill, s(:arglist)),
   s(:call, s(:str, "\n this\n\n"), :me, s(:arglist)),
   s(:call, s(:str, "\n         _sucks_\n\n"), :now!, s(:arglist))))