# List of defined classes/modules

**URL:** https://rubytalk.org/t/list-of-defined-classes-modules/9738
**Category:** ruby-talk
**Created:** [19 January 2004 04:20 UTC](https://rubytalk.org/t/list-of-defined-classes-modules/9738 "2004-01-19T04:20:01Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Mark\_J\_Reed](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@Mark\_J\_Reed](https://rubytalk.org/u/Mark_J_Reed)
#### Post date: [19 January 2004 04:20 UTC](https://rubytalk.org/t/list-of-defined-classes-modules/9738/1 "2004-01-19T04:20:01Z")

</div>

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

-Mark

---

<div class="post-metadata">

### Author: ![gga](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gga](https://rubytalk.org/u/gga)
#### Post date: [19 January 2004 04:45 UTC](https://rubytalk.org/t/list-of-defined-classes-modules/9738/2 "2004-01-19T04:45:02Z")

</div>

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

Look up ObjectSpace in the Pickaxe book.

---

<div class="post-metadata">

### Author: ![Mark\_J\_Reed](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@Mark\_J\_Reed](https://rubytalk.org/u/Mark_J_Reed)
#### Post date: [19 January 2004 05:10 UTC](https://rubytalk.org/t/list-of-defined-classes-modules/9738/3 "2004-01-19T05:10:02Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![KONTRA\_Gergely](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@KONTRA\_Gergely](https://rubytalk.org/u/KONTRA_Gergely)
#### Post date: [19 January 2004 09:30 UTC](https://rubytalk.org/t/list-of-defined-classes-modules/9738/4 "2004-01-19T09:30:12Z")

</div>

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, Gergely[kgergely@mcl.hu](mailto:kgergely@mcl.hu) PhD student Room IB113 ]---------+
> 
> > [http://www.mcl.hu/~kgergely](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](http://hu.php.net) --+

---

<div class="post-metadata">

### Author: ![George2](https://avatars.discourse-cdn.com/v4/letter/g/8e7dd6/32.png) [@George2](https://rubytalk.org/u/George2)
#### Post date: [19 January 2004 10:20 UTC](https://rubytalk.org/t/list-of-defined-classes-modules/9738/5 "2004-01-19T10:20:05Z")

</div>

> > 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](http://www.ruby-talk.com/blade/71203)

– George

---

<div class="post-metadata">

### Author: ![KONTRA\_Gergely](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@KONTRA\_Gergely](https://rubytalk.org/u/KONTRA_Gergely)
#### Post date: [19 January 2004 12:56 UTC](https://rubytalk.org/t/list-of-defined-classes-modules/9738/6 "2004-01-19T12:56:46Z")

</div>

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, Gergely[kgergely@mcl.hu](mailto:kgergely@mcl.hu) PhD student Room IB113 ]---------+
> 
> > [http://www.mcl.hu/~kgergely](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](http://hu.php.net) --+
