title: How to share variables across my .rb files?
body: <p>I have a few <code>.rb</code> files and I want to use the same variables in all of them. Let's say variable <code>test_variable = "test"</code> should be accessible from all my <code>.rb</code> files. How can I achieve that?</p>
  
  <p>I created <code>settings.rb</code> file with <code>test_variable = "test"</code> then used <code>require 'settings'</code> in another <code>.rb</code> file, but it didn't work. I would like to use <code>require</code> not <code>load</code>.</p>
  
  <p>I tried to make the variable global by prefixing the variable name with <code>$</code>, but I am still getting <code>undefined local variable or method 'test_variable' for main:Object (NameError)</code>.</p>