Yukihiro Matsumoto <matz / ruby-lang.org> wrote: > on 02/11/27, Klaus Fabritius <kfk / wasserhase.de> writes: >|Is there a thing like the_name_the_method_was_called_with? > > caller(0) may help. Thanks to you and Bill. I hoped that there is something like local_variables. Well, now it is the first method in my own utils-package: def method_name /`(.+)'$/.match(caller(1)[0])[1] end Hm, it should be the last method in the file because it kills syntax highlighting ;-) -kfk -- UNIX has grown fat. -Rob Pike, 1983