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?

Thanks,
T.