From: Justin Collins Date: 2010-01-18T14:02:57+09:00 Subject: Re: name of method? ... and 1.9 Ralph Shnelvar wrote: > GW> On Jan 17, 2010, at 5:29 PM, Ralph Shnelvar wrote: > > >>> How do I get the name of a method? >>> > > >>> def xxx >>> @WhatsMyName = ??? >>> end >>> > > GW> In Ruby 1.9: > > GW> def foo > GW> puts "this is method: #{__method__}" > GW> end > > GW> You can also use __callee__. > > Ok ... The Pickaxe book warns about not going to 1.9 because of library issues. > > Is it safe to upgrade to 1.9 now? I see that the one-click installer is still a release candidate. > > Is there a more-or-less central place that discusses 1.9 vis-a-vis compatibility with all the gems and libraries and drop-ins that one might be using? > I would say to use 1.9 unless it does not work for you. You can check some compatibility information at http://isitruby19.com/ -Justin