From: rtilley Date: 2006-03-15T10:03:46+09:00 Subject: Re: Scope of an @variable Jeff Cohen wrote: > rtilley wrote: >> This may be wrong, but I like to think of @@ as a class variable and @ >> as a method variable. @@ is accessible by any method in the class and @ >> is accessible by the method only. > > You're close. @ are instance variables. Any instance method in your > class can > access them. > > (Maybe you're thinking of local variables, which are defined within a > method and are accessible by that method only.) Thanks Jeff! That makes sense. I was confusing @ vars with local vars.