I have a here documents of something like this:

form = <<"DONE"

while( bla ..bla .. bla) do

this

DONE


How can I do a while loop inside a here documents in ruby? Is it
possible?