title: attr_accessor for array?
body: <p>I want to have an array as a instance variable using <code>attr_accessor</code>.</p>
  
  <p>But isn't <code>attr_accessor</code> only for strings?</p>
  
  <p>How do I use it on an array?</p>
  
  <p>UPDATE:</p>
  
  <p>Eg. If you want:</p>
  
  <pre><code>object.array = "cat"
  object.array = "dog"
  pp object.array
  =&gt; ["cat", "dog"]
  </code></pre>
  
  <p>Then you have to create those methods yourself?</p>