From: Robert Klemme Date: 2004-04-10T00:04:16+09:00 Subject: Re: Object oriented does not mean class oriented "rolo" schrieb im Newsbeitrag news:ACEPLIKLBKEMDDIELPKIEECKCCAA.rohitlodha@hotwireindia.com... > Hi all, > > I see for every class i declare, it is basically a new object extending the class object. > > class MyClass < BaseClass > > end > > I think apart from class, I should be able to declare many other constructs like Bean etc. > > so class declearations are something like this > > Class.new("MyClass","BaseClass") { > method.new("MyMethod"){ > > } > } > > But for ease of reading and declearations we use the present ruby form. > > How wonderfull it would be if we can define Bean like that: > > Bean MyBean < BaseBean > attributes :name > end > > I know we can do this in the current ruby. But it would be better if we switch to something like this. What do we gain by this? What is it that you want to achieve? robert