From: Robert Klemme Date: 2009-03-21T19:17:16+09:00 Subject: Re: Tracing method definition in core and stdlibs? On 20.03.2009 19:45, John Wells wrote: > On Fri, Mar 20, 2009 at 12:42 PM, John Wells > wrote: >> Yes, but I'd expect to see a good bit that were ruby too, correct? >> >> I'd like to create a utility method that would allow me to easily see >> everywhere a method (file name, line number) is defined...I have it >> working for scripts I write myself, but only going forward from that >> script scope...not back through the libs. So I'd like to hook in >> early...before any ruby files are loaded at all. > > Is there any way to accomplish this in 1.8.x? Lack of responses to me indicates that you probably need to hack Ruby's C core to achieve what you want. If you just want to see method definitions you can as well get Ruby sources and search through them. Kind regards robert