title: How to list all methods for an object in Ruby?
body: <p>How do I list all the methods that a particular object has access to?</p>
  
  <p>I have a <code>@current_user</code> object, defined in the application controller:</p>
  
  <pre><code>def current_user
    @current_user ||= User.find(session[:user_id]) if session[:user_id]
  end
  </code></pre>
  
  <p>And want to see what methods I have available to me in the view file. Specifically, I want to see what methods a <code>:has_many</code> association provides. (I know what <code>:has_many</code> <em>should</em> provide, but want to check that.)</p>