Quantcast
Channel: Pragmatic Forums | Posts in topic 'Why is the class variable @@mute_regexp necessary in Chapter 5's mute_middleware.rb?'
Viewing all articles
Browse latest Browse all 6

Why is the class variable @@mute_regexp necessary in Chapter 5's mute_middleware.rb? posted by José Valim @ Thu, 23 Jun 2011 03:29:11 +0000

$
0
0

We use a class variable for simplicity as it is easy to access both from the class and instance levels. Using a class or instance variable should not affect thread safety.


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles



Latest Images