From: Sean O'Halpin Date: 2011-03-07T08:26:28+09:00 Subject: Re: How to get class of BasicObject ancestor (Ruby 1.9.2)? On Sun, Mar 6, 2011 at 9:21 PM, 7stud -- wrote: > ...or even simpler: just open up BasicObject and monkeypatch a class > method called class(untested): ! > class BasicObject >  def self.class >    self >  end > end > > Then have at it. You've changed the #class method of the BasicObject /class/, not the /instance/. So BasicObject.class will now return BasicObject (rather than Class) and BasicObject.new.class will not work. Regards, Sean