title: Classify a Ruby string
body: <p>I have a program that create classes which looks like:</p>
  
  <pre><code>  MyClass = Class.new do
      def initialize; end
      # ...
    end
  </code></pre>
  
  <p>But I would like to name dynamically MyClass, from a string. And because it's for the name of a class, I would like to classify that string, for instance (thanks Rails methods):</p>
  
  <pre><code>  "hello_world".classify # =&gt; "HelloWorld"
  </code></pre>
  
  <p>I don't know if in pure Ruby there is a method for that.</p>
  
  <p>Thank you</p>