From: Mauricio Fernandez Date: 2006-06-24T16:35:08+09:00 Subject: Re: ruby-prof-0.4.0 On Sat, Jun 24, 2006 at 05:57:22AM +0900, Eric Hodel wrote: > On Jun 22, 2006, at 3:05 PM, Charlie Savage wrote: > >Interesting, I never would have thought of that. Your patch looks > >fine - I've applied it with a slight modification. Results will > >now be output like this: > > > >Foo::Bar#foo > >Foo::Bar#foo_1 > >Foo::Bar#foo_2 > >Foo::Bar#foo_3 > >etc... > > > >So you can tell the different calls apart. > > How about: > > Foo::Bar#foo > Foo::Bar#foo-1 > foo::Bar#foo-2 > ... > > Since foo_1 is a valid method name. #foo-1 is too, even if it's not directly callable and therefore very unlikely: RUBY_VERSION # => "1.8.4" RUBY_RELEASE_DATE # => "2006-05-18" class << self; define_method("foo-1"){ "foo-1" } end send("foo-1") # => "foo-1" -- Mauricio Fernandez - http://eigenclass.org - singular Ruby