From: googlehhc@... (RubyQ) Date: 2002-12-29T13:35:51+09:00 Subject: Question on saving variables I run into the following situation: I have to pre-process some data and then use varaibles to represent these processed data. I also want to use these variables in many places but I do not want to turn all of them into class instance variables. (@variable, that is) and I don't want to pass them as parameters for the method ( so I could use anything I want without changing the method declaration) What are the alternatives? Thanks. RubyQ. Example: class Something def initialize(v1, v2, data) # blah, blah, blah end def act(data) #preprocess the data #d1, d2, d3 and so on is available now end def use1() #use some of the d's ( it can be d2, d7 ) end def use2() #use some of the d's (it can be d1, d4 ) end def use3() # and so on.... end end