T. Onoma
11/24/2004 12:30:00 PM
On Wednesday 24 November 2004 05:37 am, Mauricio Fernández wrote:
| On Wed, Nov 24, 2004 at 12:18:24PM +0900, Austin Ziegler wrote:
| > On Wed, 24 Nov 2004 10:29:09 +0900, itsme213 <itsme213@hotmail.com> 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.
Might we expect a real "kernelless" object in Ruby 2 ?
T.