#methods
is the method you want. It simply returns an array of symbols, which are all the names of the methods that object responds to.
Object.new.methods
Or more readable in irb:
puts Object.new.methods.sort.to_yaml
Or for the class methods:
Object.methods
One caveat though, some objects allow methods that won't be listed here. Anything implemented with a hook into #method_missing
won't show up. This includes a lot of ActiveRecord
methods as well as other rails objects.
But so long as nothing tricky is going on, this is the list you seem to want.