From: Nathan Olberding Date: 2006-04-08T01:31:24+09:00 Subject: Re: Simple Question About Deleting Instances Mark Van Holstyn wrote: > I think you problems is in the report class. Each time you do report = > Report.new, you won't be getting any data carried over from the last > report > object. Is report.ID_list a method on the class? or on the instance? The > only way I can see it keeping data around is if you have some type of > data > structure as a class variable, when you meant it to be an instance > variable. > > mark Ah, this is a question I've had for a while. Last time I looked in to it, I didn't find a real answer, but my code started working, so I ran with it. How do I define the difference between class variables and instance variables? Class methods and instance methods? Currently, all my methods for my classes are defined as: def method_name() ... end And my variables are all defined as: @@var = ... I couldn't figure out any other way to make variables available to methods of the class they belonged to, but doing it this way worked . -- Posted via http://www.ruby-forum.com/.