This would be the same as:
@keywords =3D @keywords || []

If @keywords has something, use it, else, use []

El 28/09/2011, a las 12:07, Bhavesh Sharma escribi=F3:

> Sorry if this comes across as a dumb question, but what does the
> following syntax mean in ruby.
>=20
> @keywords ||=3D []
>=20
> I understand that its setting the instance variable as an array but =
what
> is the logical operator '||' doing in there.
>=20
> --=20
> Posted via http://www.ruby-forum.com/.
>=20