http://apidock.com/ruby 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
> =A0 def method_name
> =A0 =A0 =A0caller[0] =3D~ /`([^']*)'/ and $1
> =A0 end
> end
>
>
> and now it is giving me this error when calling method_name
> NoMethodError: private method `method_name' called for
> #<MyTest:0x269e260>
>
> --
> Posted via http://www.ruby-forum.com/.
>
>



--=20
=A0 Carina