From: John Carter Date: 2008-12-15T09:42:01+09:00 Subject: Re: __PRETTY__FUNCTION__ for Ruby? On Mon, 15 Dec 2008, Yukihiro Matsumoto wrote: > |We have __FILE__ and __LINE__.... > | > |So it would be nice to have __PRETTY_FUNCTION__? > | > |Is there one or do I have to roll my own out of "caller(1)[0]"? > > You mean __method__ in 1.9? Ah! Sorry! I was looking under the wrong name.... Now, thank you, I'm looking in the right place so I see..... ruby --version ruby 1.8.7 (2008-06-20 patchlevel 22) [i686-linux] $ ruby -e 'def foo;p __method__;end;foo' :foo Are you're saying that this behaviour change in 1.9? John Carter Phone : (64)(3) 358 6639 Tait Electronics Fax : (64)(3) 359 4632 PO Box 1645 Christchurch Email : john.carter@tait.co.nz New Zealand