Re: Cómo usar << para asignar contenido s in escapar a una variable [SOLUCIONADO]

El 12/03/08, Iñaki Baz C. [email protected] escribió:

var = << ‘END’
Este texto incluye “esta frase entre comillada” y punto.
END

pero en Ruby no encuentro la sintaxis correcta para su uso, ¿alguien
la conoce? Mil gracias.

Perdonad, era una tontería:

string = <<END_OF_STRING
The body of the string
is the input lines up to
one ending with the same
text that followed the ‘<<’
END_OF_STRING

Yo estaba encabezonado con poner el END_OF_STRING entre comillas XD