title: How does Ruby use symbols to reference variable names?
body: <p>When we are defining getter and setter methods for <code>name</code> in the following code:</p>
  
  <pre><code>class Animal
      attr_accessor :name
      def initialize(name)
          @name = name
      end
  end
  </code></pre>
  
  <p>what is happening internally? How is Ruby able to take a symbol and match it with a variable?</p>