title: Alternative to eval()
body: <p>I'm looking for an alternative to that code:</p>
  
  <pre><code> expl = eval "BeEF::Modules::Exploits::#{klass.capitalize}.new"
  </code></pre>
  
  <p>Here the eval is totally insecure. Is there an alternative I could use to generate dynamically classes without using eval? As in, klass is always different. So my code stays generic.</p>
  
  <p>Thanks for your time.</p>