From: Olivier Renaud Date: 2007-03-24T01:40:33+09:00 Subject: Re: Does ruby have a similar functions to the Python dir and help functions? Le vendredi 23 mars 2007 14:54, Austin Ziegler a �crit�: > Ruby can tell you the methods: obj.methods (there's also > #public_methods, #instance_methods, #private_methods, etc.). Ruby can > tell you the instance variables (#instance_variables). > > Ruby can't tell you the documentation; there's no docstring like there > is in Python. There are some enhancements to irb available that give > an ri command from within irb. > > -austin Actually, irb can give you documentation. For example : irb(main):001:0> help Array It works like ri. -- Olivier Renaud