<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 12, 2016 at 2:17 PM, Rick Hornsby <span dir="ltr">&lt;<a href="mailto:richardjhornsby@gmail.com" target="_blank">richardjhornsby@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Is the exceptions.yml file loaded each time a new instance of the class is created, and it just overwrites the @@audit_exceptions class variable?  Or is it loaded just once the first time myClass.new is invoked?</blockquote></div><br>From this SO posting (<a href="http://stackoverflow.com/a/2416407/318902">http://stackoverflow.com/a/2416407/318902</a> ) it sounds like ruby &quot;class&quot; variables are like C++ static member variables -- i.e., only one execution of the initialization (and one actual instance) for all instances of the class.  The second question is when does this happen -- with C++, it&#39;s via the static initialization routine, before main() is called. This posting ( <a href="https://www.ruby-forum.com/topic/809975">https://www.ruby-forum.com/topic/809975</a> ) says that class variables are initialized at &quot;class definition time&quot;, which I would take to be when the second &quot;end&quot; is encountered above.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Can you use strace() to verify?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Jeff</div><div class="gmail_extra"><br></div></div>