"rolo" <rohitlodha / hotwireindia.com> 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