List of defined classes/modules

How can I programmatically determine what classes and modules
are defined?

-Mark

How can I programmatically determine what classes and modules
are defined?

Look up ObjectSpace in the Pickaxe book.

Ah, thank you very much!

Odd that it doesn’t include Enumerable, though, with :each aliased to
:each_object . . .

-Mark

···

On Mon, Jan 19, 2004 at 04:41:57AM +0000, GGarramuno wrote:

How can I programmatically determine what classes and modules
are defined?

Look up ObjectSpace in the Pickaxe book.

Enumerable is not a class, but a module.
Read the Pickaxe book!

Gergo

···

On 0119, Mark J. Reed wrote:

On Mon, Jan 19, 2004 at 04:41:57AM +0000, GGarramuno wrote:

How can I programmatically determine what classes and modules
are defined?

Look up ObjectSpace in the Pickaxe book.

Ah, thank you very much!

Odd that it doesn’t include Enumerable, though, with :each aliased to
:each_object . . .


±[ Kontra, Gergelykgergely@mcl.hu PhD student Room IB113 ]---------+

http://www.mcl.hu/~kgergely “Olyan langesz vagyok, hogy |
Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom” |
±- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+

Look up ObjectSpace in the Pickaxe book.

Ah, thank you very much!

Odd that it doesn’t include Enumerable, though, with :each aliased to
:each_object . . .

See http://www.ruby-talk.com/blade/71203

– George

Sorry, I misunderstood you. Forget it.

Gergo

···

On 0119, KONTRA Gergely wrote:

Odd that it doesn’t include Enumerable, though, with :each aliased to
:each_object . . .
Enumerable is not a class, but a module.
Read the Pickaxe book!


±[ Kontra, Gergelykgergely@mcl.hu PhD student Room IB113 ]---------+

http://www.mcl.hu/~kgergely “Olyan langesz vagyok, hogy |
Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom” |
±- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+