Forum: Ruby how are you locating method signatures and sources?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Vijay R. (Guest)
on 2006-05-09 05:00
hello all,

1. given there is a method say, "save" within a ruby class, how are you
going about finding what type arguments it takes, what it returns
and then perhaps, its source code (if you want to learn by example)?

is the way to navigate to  api documentation and search to
find the method?

2. in case of the ruby on rails "scaffold:" methods, how do
you  find the above for them - it seems an effort to have
to go to all code that perhaps is dynamically generating
the CRUD methods.

is there by chance a way for ruby by introspection (or else)
return the source code for a method?

this is a huge challenge for a newbie like myself who is used
to nice "self-documenting" java methods, and zipping to the
corresponding javadoc source with the stroke of the F1 key.


Logan C. (Guest)
on 2006-05-09 05:11
(Received via mailing list)
On May 8, 2006, at 9:00 PM, jay raman wrote:

> 2. in case of the ruby on rails "scaffold:" methods, how do
> best,
> vj
> --
> Posted via

You should check out ri, gem_server and
This topic is locked and can not be replied to.