title: How to declare custom attribute accessor with dynamic argument in Ruby?
body: <p>I want to declare a custom accessor in a Rails model like this:</p>
  
  <pre><code>footnote_attrs :title, :body
  </code></pre>
  
  <p>Then I want to access <code>footnote_attrs</code> in a method inside the model. <code>footnote_attrs</code> need just to return an array containing the args passed to it. In this case, it will be <code>[:title, :body]</code>. What is the best way to implement this?</p>