From: Trans Date: 2008-11-20T03:22:57+09:00 Subject: Re: Error message, hide class name On Nov 19, 11:50 am, Trans wrote: > irb(main):005:0> class X > irb(main):006:1>   def inspect > irb(main):007:2>     "hey" > irb(main):008:2>   end > irb(main):009:1> end > => nil > irb(main):010:0> x = X.new.nomethod > NoMethodError: undefined method `nomethod' for hey:X >         from (irb):10 > > Anyone know how I can get rid of the ':X' after 'hey'? I've tried: > >   class X >     def self.name; ''; end >     def self.to_s; ''; end >     def class; ''; end >   end > > Where is it getting the class name? FYI, I decided to just chomp off everything after the 'for', so no big deal. But I still don't understand where the error message was getting the class name. T