From: Joshua Ball Date: 2008-12-17T14:36:59+09:00 Subject: function discovery ------=_Part_16469_3772611.1229492677175 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I am curious if there is a programatic way to list all methods of a class. (Yes, I know about "ri", I am just curious here) For instance, I am trying to figure out what I could do with the File f in: open(ARGV[0], 'rb') { |f| puts f.stat.mtime puts f.class } Now, f.class returns: File Is there anything like: f.functions.each { |p| puts p } Thanks ------=_Part_16469_3772611.1229492677175--