title: Can I determine which paths RubyGems added to the load path to make my command line app work?
body: <p>In a gemspec, I can specify the <code>require_paths</code>, which represent paths I want to be able to require from at runtime.  These get put into the <code>$LOAD_PATH</code> by RubyGems.</p>
  
  <p>My question is: is there a way I can determine what these paths are at runtime?  Can I examine elements of <code>$LOAD_PATH</code> and know which ones were added just for my gem?</p>
  
  <p><strong>Update</strong>: Ultimately, I would like to dynamically load ruby files from inside the gem, e.g.</p>
  
  <pre><code>load_from 'foo/bar'
  </code></pre>
  
  <p>And have that find <code>$MY_GEMS_LIB_DIR/foo/bar/*.rb</code>.  I can certainly go through the entire <code>$LOAD_PATH</code> looking for <code>foo/bar</code>, but I'd rather restrict it just to the gem.</p>