From: Joel VanderWerf Date: 2005-12-14T02:19:04+09:00 Subject: Re: Private attribute or accessor? Sam Kong wrote: > class C > attr_accessor :a > def f(v) > a = v ^^^^^ this only assigns a local variable You want: self.a = v -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407