title: Ruby Class instance method def initialize: instance or class method?
body: <p>Let's take a normal ruby class:</p>
  
  <pre><code>class Person
    attr_accessor :name
    def initialize name
      @name = name
    end
  end
  
  bob = Person.new("bob")
  </code></pre>
  
  <p>My question is the nature of initialize. Here's the thing, <code>new</code> is clearly a class method, but seems to me that <code>initialize</code> is an instance method(not class) that is called on the instance created WHEN the class method <code>new</code> is called. </p>
  
  <p>Do I have this right? Or can someone shed some new light? I've done some google searches and couldn't find any clarity. </p>