Florian Gross wrote: > James Edward Gray II wrote: [...] >> if caller[0] =~ /in `([^']+)'/ then $1 else '(anonymous)' end > > Hm, perhaps even this: > > caller.first[/in `(.+?)'/, 1] || "(anonymous") > > Don't know if you'd prefer that, though. [looks nicer.] please (for archive integrity reasons) use the original thread for further discussion: [EVALUATION] - E03 - jamLang Evaluation Case Applied to Ruby http://groups-beta.google.com/group/comp.lang.ruby/browse_thread/thread/78501a0ec8d59e77 I've answered therein. .. -- http://lazaridis.com