From: Jeremy McAnally Date: 2007-03-23T23:26:11+09:00 Subject: Re: Does ruby have a similar functions to the Python dir and help functions? def dir(object) object.methods.sort end That should give you the same effect; as for the help method, ri is your only option AFAIK. --Jeremy On 3/23/07, py wrote: > In python during runtime, or in the python shell you can type: > > dir() > > or > > dir() > > and get a list of variables, methods etc that exist for that object. > > Also there is help(), or help(). > > does ruby have similar functions. I know that you can use ri....but > is there a function to call while in the ruby shell? > > thanks > > > -- http://www.jeremymcanally.com/ My free Ruby e-book: http://www.humblelittlerubybook.com/book/ My blogs: http://www.mrneighborly.com/ http://www.rubyinpractice.com/