From: Trans Date: 2008-11-20T18:55:41+09:00 Subject: Re: Error message, hide class name On Nov 20, 3:48 am, "Pit Capitain" wrote: > 2008/11/19 Trans : > > > But I still don't understand where the error message was getting > > the class name. > > Tom, the so-called class path seems to be buried deep inside > unaccessible instance variables of the class. For a workaround use a > "#" as the first character of the inspect result: > >   class X >     def inspect >       "#hey" >     end >   end > >   X.new.x  # => undefined method `x' for #hey (NoMethodError) That's interesting! Thanks Pit. I think I can use that. T.