Hi Mark,

One "ugly" way is to use the Exception object:

    def my_method
        begin
            raise
        rescue => detail
            detail.backtrace[0] =~ /in `(.*)'/
            puts $1
        end
    end
    my_method    # >> 'my_method'

Hopefully some other people can give a better idea.

Regards,

Bill
===========================================================================
Volkmann, Mark <Mark.Volkmann / agedwards.com> wrote:
> Is there a way to programmatically determine the name of the method that is
> currently being executed?
> I'd like to use this for logging purposes.