From: Dominic Rose Date: 2010-05-11T00:27:29+09:00 Subject: Re: creating static variables Last time I had this sort of problem I create a @@var in the class that contains the method used. So you could do something like @@counter = 0 def update_counter value @@counter += value end p @@counter #=> 0 update_counter 12 p @@counter #=> 12 update_counter 5 p @@counter #=> 17 -- Posted via http://www.ruby-forum.com/.