From: Tim Pease Date: 2007-08-02T07:25:21+09:00 Subject: Re: how to determine which file a method is defined in On 8/1/07, Fenton Travers wrote: > I would like to know if there is a way to definitively tell which file a > given method was defined in. > The simplest solution would be to use grep on the .rb files that you are requiring into your irb session. From a command prompt ... grep 'def find' `find . -name '*.rb'` If that does not work for you, then you can set the SCRIPT_LINES__ constant to capture the source code read in by the ruby interpreter when require is called. There is an example in the second version of the pickaxe book (page 528). Blessings, TwP