Hi Richard,

Richard wrote:
> I'd like to write a trace function and have every method
> execute that trace when the method's invoked.  In that
> trace function,  I'd like to be able, e.g. to write the
> invoked method's name, perhaps more.
>
> Is there an easy way to do that?
>
> BTW,  I posted this question on the Ruby/Rails Newsgroup
> before Irealized it's more appropriate here.

Since you mentioned Rails, I'll assume you're using it.  If not, this
won't apply.

Check out the Class documentation ( http://api.rubyonrails.org , left
panel, middle section) for ActionController::Filters::ClassMethods.
You're probably looking for an after_filter given that you may want to
store some stuff you 'compute' in the method.

hth,
Bill