Thank You Jones for your answer,
I was suspecting that my class variable will not be the same at the same
request. I understand that on a multi-process deployment things would be
different.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to t
On Monday, 26 May 2014 03:16:26 UTC-4, Ruby-Forum.com User wrote:
>
> Hello,
>
> When setting the class static variables, These are shared across all the
> instances created.
>
> Class A
> @@bool_var = true
>
> def get_bool_var
> @@bool_var
> end
> end
>
> All the instances wil
2 matches
Mail list logo