El Martes, 12 de Enero de 2010, BlueHandTalking escribi=F3:
If you have a class 'Thing'
=20
does name of instance variable have to be:
=20
@thing =3D Thing.new
=20
or is
=20
@widget =3D Thing.new
=20
O.k. to use?
local_aaa =3D Thing.new
CONSTANT_BBB =3D Thing.new
$global_ccc =3D Thing.new
_a_n_y_ =3D Thing.new
@attribute_1 =3D Thing.new
@@class_var2 =3D Thing.new
*any* is valid, so any kind of attribute name is also valid.
Again I think you ask this because Rails conventions. If so remember please=
=20
that this is a Ruby maillist, and Rails rules/conventions are not a must he=
re.
=2D-=20
I=F1aki Baz Castillo <
[email protected]>