From: Adam Prescott Date: 2011-03-03T22:21:52+09:00 Subject: Re: How to stop a file from being required --90e6ba5bbab78196d5049d93e95e Content-Type: text/plain; charset=UTF-8 On Thu, Mar 3, 2011 at 1:10 PM, Usman Hussain wrote: > > is there something I can write before or after this to stop it from > loading if the file has already been loaded? > > [...] > > For some reason It is loading twice when it should not be allowed to. > http://www.ruby-doc.org/core/classes/Kernel.html#M001418 The name of the loaded feature is added to the array in $". A feature will > not be loaded if its name already appears in $". Perhaps you're requiring the file using two different paths? I can see this happening if you change $LOAD_PATH in one of the required files in a lower directory. --90e6ba5bbab78196d5049d93e95e--