From: gabriele renzi Date: 2004-01-29T02:04:54+09:00 Subject: Re: Does a function like pythons dir() excist for ruby ? il Wed, 28 Jan 2004 11:52:35 +0100, Asbj�rn Reglund Thorsen ha scritto:: >I am using interactive Ruby for quick testing my swigged c++ module. In >python i can write down the command dir(), and I will get what`s inside >the module. Is there a similar function for Ruby ? > better :) IIRC dir() will give you all the atributes, both functionsn constants and so on. In ruby you may be more specific with Module.instance_methods public_methods private_instance_methods constants and so on :)