Inaki,
Thanks for the example list.
Actually, I did not ask because it is a Rails thing.
I asked because I needed some fundamental, like very
basic knowledge about Ruby that I did not understand.
...and I did RTFM before this post.
Thanks again,
Jet
On Jan 12, 11:58 ¨Âí¬ ¤Âñáki Baz Castillo <i... / aliax.net> wrote:
> El Martes, 12 de Enero de 2010, BlueHandTalking escribi
>
> > If you have a class 'Thing'
>
> > does name of instance variable have to be:
>
> > @thing = Thing.new
>
> > or is
>
> > @widget = Thing.new
>
> > O.k. to use?
>
> local_aaa Thing.new
> CONSTANT_BBB = Thing.new
> $global_ccc Thing.new
> _a_n_y_ Thing.new
> @attribute_1 = Thing.new
> @@class_var2 = 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
> that this is a Ruby maillist, and Rails rules/conventions are not a must here.
>
> --
> Iñáki Baz Castillo <i... / aliax.net>