From: Mario Ruiz Date: 2011-10-31T23:56:28+09:00 Subject: Re: Kernel on Ruby 1.9.2 I solved this by using it as public Also another way is to use the variable @__name__ Thanks for the help Robert Klemme wrote in post #1028993: > On Thu, Oct 27, 2011 at 9:19 PM, Mario Ruiz wrote: >> >> 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 -- Posted via http://www.ruby-forum.com/.