From: "trans. (T. Onoma)" Date: 2004-10-05T05:41:14+09:00 Subject: Re: ruby-dev summary 24298-24353 On Monday 04 October 2004 04:14 pm, Ara.T.Howard@noaa.gov wrote: > On Tue, 5 Oct 2004, trans. (T. Onoma) wrote: > > On Monday 04 October 2004 10:49 am, Robert Klemme wrote: > >> "trans. (T. Onoma)" schrieb im Newsbeitrag > >> > >>> Right. Makes me wish Ruby had an light-weight object class. > >> > >> What exactly do you want this for? What should it do? > > > > They have one in Evil. Essentially a Kernel-less object, which is good > > for cases like this. > > where is Evil downloaded? On Rubyforge. For just the evil.rb file: http://rubyforge.org/cgi-bin/viewcvs/cgi/viewcvs.cgi/evil/lib/evil.rb?rev=1.37&cvsroot=evil&content-type=text/vnd.viewcvs-markup For the whole cvs: http://rubyforge.org/cgi-bin/viewcvs/cgi/viewcvs.cgi/cvs_root.tar.gz?tarball=1&cvsroot=evil And here she is: # Like Object, but this provides no methods at all. # You can derivate your own Classes from this Class # if you want them to have no preset methods. # # obj = KernellessObject.new # obj.methods # ~> NoMethodError class KernellessObject def self.new obj = ::Object.new obj.class = self return obj end self.superclass = nil end Seems to be that this is a bit more than just "Kernelless", this looks more like the hollow ShellOfObject :) T.