Ruby - APIdock is good for tracking down this stuff. You can
search for a method, then select a Ruby version number to see where it
exists and where it doesn't. Deprecated 1.8.7 methods' descriptions
also usually refer you to a 1.9.x equivalent, if one exists.
···
On Thu, Oct 27, 2011 at 12:19 PM, Mario Ruiz <tcblues@gmail.com> 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
#<MyTest:0x269e260>