Newbie question: find source code of Enumerable, Comparable etc.

G

gtcc2009

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
 
K

Kev Jackson

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
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

Kev
 
D

Daniel Harple

<snip> 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,480
Members
44,900
Latest member
Nell636132

Latest Threads

Top