alberto kaputchella:
>
> The @ means that the variable is an object variable, its scope is
> within, and is associated to, the current object.
>
> For example,
>
> class Person
>   def initialize(name)
>        @name=name
>   end
>
>   def say_your_name
>        puts @name
>   end
>
> In this class, you assign the name provided to the class to @name.
> @name as an object variable, is then accessible from any other method
> inside the object.

So the @-sign in Ruby is like self in Python? Can someone confirm who
knows Python?

Chad Perrin:
>What exactly do you mean by "the normal way"?

I meant like this: myhash = {}, sorry for being unclear.

-- 
Posted via http://www.ruby-forum.com/.