From: "trans. (T. Onoma)" Date: 2004-11-24T21:13:18+09:00 Subject: Re: How to avoid inheriting Object? On Wednesday 24 November 2004 12:54 am, Jim Weirich wrote: | On Tuesday 23 November 2004 10:18 pm, 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. | | Builder 1.2.2 is available as a gem and includes the most recent version of | BlankSlate. Although conceptually simple, it turns out there are a few | gotchas when writing a good BlankSlate object. The version in builder is | addresses all the issues I am aware of. | | The blog entry describing the initial BlankSlate is at | http://onestepback.org/index.cgi/Tech/Ruby/BlankSlate.rdoc. Nice work Jim. Builder looks quite useful and might prove useful to those interested in the YAML vs. Marshalling thread --but then how would they really guess that? Might I suggest changing the name to something a little more descriptive --like XMLBuilder. Just Builder is rather general and undescriptive. With a more specific name I think you'll pick-up more hits. The GEM description BTW didn't improve matters much either. builder (1.2.2) Builders for MarkUp. If it wasn't for this BlankSlate post, I would never have known what this was for. T.