From: "Mauricio Fernández" Date: 2004-11-24T19:37:47+09:00 Subject: Re: How to avoid inheriting Object? On Wed, Nov 24, 2004 at 12:18:24PM +0900, Austin Ziegler wrote: > On Wed, 24 Nov 2004 10:29:09 +0900, itsme213 wrote: > > How do I create a class that does not inherit from Object? > > You can't. All objects inherit from Object. > > If, however, you want a bare class (e.g., nothing except __send__ and > __id__), then there are ways to do that. Look at the evilruby project > and I think that Jim Weirich has said stuff about this on his > onestepback blog. Actually, evil.rb does provide objects which do not inherit from Object. In fact, you'd normally have to add __send__ and __id__ yourself. BlankSlate just 'undefines' the instance methods, but it doesn't do anything about singleton methods of the class, for instance. -- Hassle-free packages for Ruby? RPA is available from http://www.rubyarchive.org/