title: Why is 'self' necessary here instead of an instance variable?
body: <p>In a lesson from codeschool, the code in the top-left block is demonstrated to be incorrect.</p>
  
  <p>"Of course it is", I say to myself. I've learned it should be <code>@name = name</code>. What's the new problem? Why is "self" necessary here instead? See my working code below:</p>
  
  <p><img src="https://i.stack.imgur.com/Y06FA.jpg" alt="enter image description here"></p>
  
  <pre><code>class UserList
      attr_accessor :name
      def initialize(name)
          @name = name
      end
  end
  
  list = UserList.new('celebrities')
  list.name
  </code></pre>