# Newbie question: find source code of Enumerable, Comparable

**URL:** <https://www.ruby-forum.com/t/newbie-question-find-source-code-of-enumerable-comparable/52246>\
**Category:** Ruby\
**Created:** [January 12, 2006, 6:14am UTC](https://www.ruby-forum.com/t/newbie-question-find-source-code-of-enumerable-comparable/52246 "2006-01-12T06:14:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 12, 2006, 6:14am UTC](https://www.ruby-forum.com/t/newbie-question-find-source-code-of-enumerable-comparable/52246/1 "2006-01-12T06:14:20Z")

</div>

Hi there,

I’m new to Ruby and trying to read the source, beside the books, to  
understand the language. While I can find the source for many library  
classes in the folder lib/ruby/1.8, I cannot find the source for  
classes such as Kernel, Enumerable, Comparable, String, Array etc.

Is there any hint on where I can find those source files?

Thanks,

Dor

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 12, 2006, 6:17am UTC](https://www.ruby-forum.com/t/newbie-question-find-source-code-of-enumerable-comparable/52246/2 "2006-01-12T06:17:20Z")

</div>

removed\_email\_address@domain.invalid wrote:

> Dor

These are probably written in C (I’m sure someone will confirm this).  
Kernel almost has to be written in C.

The full source for ruby can be downloaded from the CVS at [ruby-lang.org](http://ruby-lang.org)

Kev

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 12, 2006, 6:20am UTC](https://www.ruby-forum.com/t/newbie-question-find-source-code-of-enumerable-comparable/52246/3 "2006-01-12T06:20:22Z")

</div>

removed\_email\_address@domain.invalid wrote:

> Kernel, Enumerable, Comparable, String, Array etc.
> 
> Is there any hint on where I can find those source files?
> 
> Thanks,
> 
> Dor

They are wrote in C, so download the ruby source to view them.

– Daniel

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 12, 2006, 6:29am UTC](https://www.ruby-forum.com/t/newbie-question-find-source-code-of-enumerable-comparable/52246/4 "2006-01-12T06:29:31Z")

</div>

Ah, I didn’t know that. Thank you, Kev and Daniel.
