botp
6/11/2009 2:46:00 AM
On Thu, Jun 11, 2009 at 9:37 AM, Xeno Campanoli<xeno.campanoli@gmail.com> wrote:
> This would be handy with some of my class methods for composing exception
> messages...??
>
maybe you can call caller and it will tell you who you are
eg,
> def whoami
> caller[0]
>end
=> nil
> def m
> whoami
> end
=> nil
> m
=> "(irb):62:in `m'"
>