R
rolo
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.
Class MyClass < BaseClass
end
regards,
rolo
"There is always more to say"
http://www.c2.com/cgi/wiki?EasternPhilosophyInSoftwareDesign
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.
Class MyClass < BaseClass
end
regards,
rolo
"There is always more to say"
http://www.c2.com/cgi/wiki?EasternPhilosophyInSoftwareDesign