title: Where to put custom classes in a Rails app so they are globally available?
body: <p>I have a custom class located in 'lib' and I want to create one instance of it that I can call anywhere in my Rails app--from controllers to rake tasks.</p>
  
  <p>I can seem to do this with simple variables in an 'initializers' file like this:</p>
  
  <pre><code>@foo = "bar"
  </code></pre>
  
  <p>and I can see @foo anywhere. How do I create an instance of my class so I can call it and its methods from anywhere?</p>
  
  <p>TIA</p>