From: Nathan Olberding Date: 2006-04-08T01:47:21+09:00 Subject: Re: Simple Question About Deleting Instances zdennis wrote: >> def method_name() >> ... >> end > > This is an instance method. It works on the instance of Report. > >> >> And my variables are all defined as: >> >> @@var = ... > > This is a class variable. All Reports will share this variable. You > probably want to make it an instance variable with one @ symbols. > > @var = ... I replaced all instances of "@@" with "@" in my script since I don't need any class variables. Now, Ruby generates errors telling me that all of these variables are unknown when referenced from instance methods. Do I need to make any special kinds of accessors or anything? And on that note, how do I do something like attr_reader :@@var? Ruby doesn't seem to know what to do when I put those @s there. -- Posted via http://www.ruby-forum.com/.