Ruby source code

Hey all how do i view the source code for ruby kernel classes like
Object and Class.
For example say i would like to see how the method #new implemented ?
is this implemented in Ruby or do i have to step into the C source
code ?

Thanks
Isaiah

isaiah perumalla wrote:

Hey all how do i view the source code for ruby kernel classes like
Object and Class.
For example say i would like to see how the method #new implemented ?
is this implemented in Ruby or do i have to step into the C source
code ?

Thanks
Isaiah

The core classes (like Object and Class) are implemented in C. Usually
the class name matches the source file name. That is, Class => class.c.

Am Sonntag 12 Juli 2009 23:15:08 schrieb isaiah perumalla:

Hey all how do i view the source code for ruby kernel classes like
Object and Class.

You can see a method’s source code by clicking its name in the rdoc. Or
you
could download the ruby source code from ruby-lang.org’s download
section.

For example say i would like to see how the method #new implemented ?

http://ruby-doc.org/core/classes/Class.src/M002787.html

is this implemented in Ruby or do i have to step into the C source
code ?

It’s in C.

Thanks
Isaiah

HTH,
Sebastian