title: What would a default getter and setter look like in rails?
body: <p>I know that I can write attr_accessor :tag_list to make a virtual attribute tag_list for an object in Rails. This allows there to be a tag_list attribute in forms for the object.</p>
  
  <p>If I use attr_accessor :tag_list I can, in the model, perform actions on tag_list to pull and manipulate data from the form.</p>
  
  <p>What I want to know is, instead of writing attr_accessor, how would I write a getter and setter that would replicate completely the default functionality of attr_accessor. EG:</p>
  
  <pre><code>def tag_list
      #what goes here
  end
  </code></pre>
  
  <p>FYI I have tried</p>
  
  <pre><code> def tag_list
       @tag_list
   end
  </code></pre>
  
  <p>This does NOT work. </p>