[ruby-on-rails] How to list all methods for an object in Ruby?