In Python we can \"dir\" a module, like this:
>>> import re
>>> dir(re)
And it lists all functions in the module. Is ther
If I stricly read your question, I must answer it that way: a file as specified by require in Ruby is just a container and does not have necessarely have any relation with a class. The content can be:
or any combination of the above, several times. So you can not directly ask for all methods in a given file.
If you meant to list all methods of a given module or class, then the other answers are what you seek (mainly using the #methods method on a module name or class).