On Oct 16, 2005, at 2:56 PM, Brian Schröäer wrote:

> that is cool. I did not know that it was possible to chain methods to
> a herdoc like this.

I use that a lot, because I'm very anal and insist on indenting my  
HERDOCs.  :)  Works great:

data = <<END.gsub(/^  /, "")
   indented
   lines
   go
   here
END

James Edward Gray II