From: Gary Wright Date: 2007-03-30T07:38:04+09:00 Subject: Re: Is there a tool to document method invocations? On Mar 29, 2007, at 5:51 PM, Larry Fast wrote: > Joel VanderWerf wrote: >> gem install ruby-prof >> It's a really nice tool. > > OK, but doesn't it just produce runtime reports? I'm looking for a > static report on WHERE in my code various objects and methods are > used. > Is this capability buried in ruby-prof somewhere? The docs just talk > about runtime. I'd be surprised if it were even possible to generate a call graph based on the static text. Ruby is simply too dynamic of a language. The main problem is that it is really difficult (impossible?) to intuit the class of the object returned by a method call by simply looking at the text. Add in the possibility that methods are created at run time and it becomes a really *hard* problem. Gary Wright