Forum: Ruby class variables in Rack middleware

Posted by Iain Barnett (Guest)
on 2012-11-07 10:48
(Received via mailing list)
I see a lot of class variables used in Rack middleware, and this is 
probably the only place I see them used anymore. In each case, it seems 
to me that a class instance variable would've done the trick too, so is 
there some reason for using a class variable in the case of rack 
middleware that is better, or is it just less typing for the dev?

Any insights shared will be much appreciated.

Iain
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.