From: Robert Klemme Date: 2011-10-29T02:15:57+09:00 Subject: Re: Kernel on Ruby 1.9.2 On Thu, Oct 27, 2011 at 9:19 PM, Mario Ruiz wrote: > Now it seems like Kernel it is not working the same way > I had this code in 1.8.7 > > module Kernel > private >   def method_name >      caller[0] =~ /`([^']*)'/ and $1 >   end > end > > > and now it is giving me this error when calling method_name > NoMethodError: private method `method_name' called for > # Can you show the calling code? Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/