Ruby: @@ vs @ variables outside of classes?
<p>I understand that a variable declared with @ outside of a class will become an instance variable of the object main.</p>

<p>Functionally, is this any different than declaring it as @@?</p>

<p>I was expecting @test declared in file2.rb  to throw an exception when accessed in file1.rb (through require), but it did not. Does this mean there is always only one main object and that @ and @@ are equivalent in this scope?</p>