Static variable in Ruby?
Hi there
Is there any approach to store some info in a static variable?
I mean a kind of variable, which keeps their value durring different calls, i.e. doesn't lost the value after execution of the ruby script.
It might be useful to arrange counters for statistic, etc
Counters might be used for call management, for example
Any idea would be appreciated,
Alexey
|