Forum: Ruby Newbie question: find source code of Enumerable, Comparable

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6174040f2c8c13934142d87858975073?d=identicon&s=25 unknown (Guest)
on 2006-01-12 06:14
(Received via mailing list)
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
2a0f7bd2c54fbc44329d69555b96f1c5?d=identicon&s=25 Kev Jackson (Guest)
on 2006-01-12 06:17
(Received via mailing list)
gtcc2009@yahoo.com 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

Kev
9358cc96c46055cd68d4a76a9aefe026?d=identicon&s=25 Daniel Harple (Guest)
on 2006-01-12 06:20
(Received via mailing list)
gtcc2009@yahoo.com wrote:
> <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
6174040f2c8c13934142d87858975073?d=identicon&s=25 unknown (Guest)
on 2006-01-12 06:29
(Received via mailing list)
Ah, I didn't know that. Thank you, Kev and Daniel.
This topic is locked and can not be replied to.