in reply to list out all methods of object

This has been asked before. See Re: Listing all methods on an object