From: Robert Klemme Date: 2007-07-24T18:04:13+09:00 Subject: Re: Static variables in Ruby. 2007/7/24, Marcin Tyman : > Hi everybody, > Is any way to define static variables over function? As class static > variables there is possible to define a static class variable as > @@name_of_var. But I'm not sure if Ruby let define such variables in > functions (like in C/C++) If you mean static variables that are visible in a single method only, then no, there is no way to do it. You should probably rethink your design if it relies on such archaic features of other programming languages. :-) Kind regards robert