- ruby - ruby method source code

can you see the source code of a method in ruby?

if you will tell me about ruby2ruby, please give a valid example…i’ve
read about ruby2ruby, but i’m still at WTF level

thanks

Mike wrote:

can you see the source code of a method in ruby?

if you will tell me about ruby2ruby, please give a valid example…i’ve
read about ruby2ruby, but i’m still at WTF level

thanks

Not sure what you mean. You want to see source code for the basic ruby
methods? I’m not sure it would help you too much as the built in
methods are all implemented in C, and then compiled into the ruby
executable. Very few of the standard ruby methods are actually written
in ruby.

I want to see let’s say the source of ActionView::Base.field_error_proc,
but i don’t want to browser into rails library, and search for that
method.
I just want to run ruby script/console, load environment, and write
there a line to show me tho code

Alex W. wrote:

Mike wrote:

can you see the source code of a method in ruby?

if you will tell me about ruby2ruby, please give a valid example…i’ve
read about ruby2ruby, but i’m still at WTF level

thanks

Not sure what you mean. You want to see source code for the basic ruby
methods? I’m not sure it would help you too much as the built in
methods are all implemented in C, and then compiled into the ruby
executable. Very few of the standard ruby methods are actually written
in ruby.